Skip to content

Commit 0e331f3

Browse files
ci(travis): adds awesome_bot for linting *.md files (#311)
* ci(travis): adds awesome_bot for linting *.md files * skip before_script for linting stage * run srcclr in integration stage previously running in every stage
1 parent 2256ff3 commit 0e331f3

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.travis.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,35 @@ before_script:
4444
- emulator -avd test -no-audio -no-window &
4545
- scripts/android-wait-for-emulator.sh
4646
- adb shell input keyevent 82 &
47-
addons:
48-
srcclr: true
4947
script:
5048
- ./gradlew cleanAllModules
5149
- ./gradlew testAllModulesTravis
5250
- if [[ -n $TRAVIS_TAG ]]; then ./gradlew ship; fi
5351

5452
# Integration tests need to run first to reset the PR build status to pending
5553
stages:
54+
- 'Lint markdown files'
5655
- 'Integration tests'
5756
- 'Benchmarking tests'
5857
- 'Test'
5958

6059
jobs:
6160
include:
61+
- stage: 'Lint markdown files'
62+
language: ruby
63+
rvm: 2.4.1
64+
os: linux
65+
install: gem install awesome_bot
66+
before_script: skip
67+
script:
68+
- find . -type f -name '*.md' -exec awesome_bot {} \;
69+
notifications:
70+
email: false
71+
6272
- &integrationtest
6373
stage: 'Integration tests'
74+
addons:
75+
srcclr: true
6476
env:
6577
- SDK=android
6678
- BUILD_NUMBER=${TRAVIS_JOB_NUMBER/.}

0 commit comments

Comments
 (0)