Skip to content

ci(travis): adds awesome_bot for linting *.md files #380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ env:
- SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH
before_install: cd packages/optimizely-sdk
install: npm install
addons:
srcclr: true
script: npm test
after_success: npm run coveralls

# Integration tests need to run first to reset the PR build status to pending
stages:
- name: 'Lint markdown files'
- 'Lint'
- 'Integration tests'
- 'Benchmarking tests'
Expand All @@ -35,11 +34,23 @@ stages:

jobs:
include:
- stage: 'Lint markdown files'
language: ruby
rvm: 2.4.1
os: linux
install: gem install awesome_bot
script:
- find . -type f -name '*.md' -exec awesome_bot {} \;
notifications:
email: false

- stage: 'Lint'
node_js: '12'
script: npm run lint
- &integrationtest
stage: 'Integration tests'
addons:
srcclr: true
merge_mode: replace
cache: false
language: minimal
Expand Down