chore: add lint job to travis

This commit is contained in:
Misko Hevery 2016-05-01 22:53:43 -07:00
parent 3e17c99f4e
commit ce5b37239e
3 changed files with 17 additions and 0 deletions

View File

@ -37,6 +37,7 @@ env:
matrix:
# Order: a slower build first, so that we don't occupy an idle travis worker waiting for others to complete.
- CI_MODE=js
- CI_MODE=lint
# - CI_MODE=dart
- CI_MODE=build_only
- CI_MODE=saucelabs_required

15
scripts/ci-lite/lint.sh Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -ex -o pipefail
if [[ ${TRAVIS} && ${CI_MODE} != "lint" ]]; then
exit 0;
fi
echo 'travis_fold:start:lint'
gulp lint
gulp check-format
echo 'travis_fold:end:lint'

View File

@ -9,6 +9,7 @@ cd `dirname $0`
source ./env.sh
cd ../..
./scripts/ci-lite/lint.sh
./scripts/ci-lite/test_js.sh
./scripts/ci-lite/test_build_only.sh
./scripts/ci-lite/test_saucelabs.sh