chore: add lint job to travis
This commit is contained in:
parent
3e17c99f4e
commit
ce5b37239e
|
@ -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
|
||||
|
|
|
@ -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'
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue