mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-20 21:35:42 +02:00
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.
16 lines
456 B
YAML
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 $?
|