Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 60af4c5

Browse files
ci(travis): adds awesome_bot for linting *.md files (optimizely#380)
Co-authored-by: Matt Carroll <mjc1283@users.noreply.github.com>
1 parent d61281b commit 60af4c5

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.travis.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ env:
1919
- SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH
2020
before_install: cd packages/optimizely-sdk
2121
install: npm install
22-
addons:
23-
srcclr: true
2422
script: npm test
2523
after_success: npm run coveralls
2624

2725
# Integration tests need to run first to reset the PR build status to pending
2826
stages:
27+
- name: 'Lint markdown files'
2928
- 'Lint'
3029
- 'Integration tests'
3130
- 'Benchmarking tests'
@@ -35,11 +34,23 @@ stages:
3534

3635
jobs:
3736
include:
37+
- stage: 'Lint markdown files'
38+
language: ruby
39+
rvm: 2.4.1
40+
os: linux
41+
install: gem install awesome_bot
42+
script:
43+
- find . -type f -name '*.md' -exec awesome_bot {} \;
44+
notifications:
45+
email: false
46+
3847
- stage: 'Lint'
3948
node_js: '12'
4049
script: npm run lint
4150
- &integrationtest
4251
stage: 'Integration tests'
52+
addons:
53+
srcclr: true
4354
merge_mode: replace
4455
cache: false
4556
language: minimal

0 commit comments

Comments
 (0)