diff --git a/.travis.yml b/.travis.yml index b61ce80174..1fb368be41 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,8 +12,10 @@ before_script: - npm install -g bower gulp-cli@1 - bower install - gulp lint-eslint -- gulp update-types -- git diff --exit-code +- >- + npm run update-types && git diff --exit-code || (echo -e + '\n\033[31mERROR:\033[0m Typings are stale. Please run "npm run + update-types".' && false) script: - wct -l chrome -l firefox - if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then travis_wait 30 ./util/travis-sauce-test.sh; fi