fix: immediately exit travis on build error (#2626)

This commit is contained in:
Jason Poon 2018-05-07 22:57:32 -07:00 committed by GitHub
parent 73de6bd152
commit cb0d3e26c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,15 +35,14 @@ before_install:
sleep 3;
fi
script:
before_script:
- npm run build
- npm run forceprettier
- if [[ $(git diff-index HEAD -- *.js *.ts) ]]; then
git diff;
echo "Prettier Failed. Run `gulp` or `gulp forceprettier`";
exit 1;
fi
- npm run build
- npm test --silent;
before_deploy:
- npm install -g vsce;