pcottle.learnGitBranching/.travis.yml
David Nelson 4e32f729c1 Check that there are no source file changes before building
If dependencies are changed (in package.json) without updating the yarn.lock
file, or if any other part of the build process starts producing unignored
files, the CI build will fail, so that the problem can be corrected before the
PR is merged.
2019-05-01 04:04:24 -05:00

16 lines
456 B
YAML

sudo: false
language: node_js
node_js:
- "10"
- "8"
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
cache:
yarn: true
directories:
- "node_modules"
script:
- ./checkgit.sh "Source files were modified before build; is yarn.lock out of sync with package.json?" || travis_terminate $?
- yarn grunt
- ./checkgit.sh "Source files were modified by the build" || travis_terminate $?