forked from alphagov/govuk-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
22 lines (22 loc) · 871 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
language: node_js
notifications:
email: false
sudo: false
install:
- npm install --no-optional
before_deploy:
- test $TRAVIS_TEST_RESULT = 0
jobs:
include:
- stage: Run npm test
script:
# Ensure Travis aborts without running tests if the package-lock.json file needs updating
- set -e
- ./bin/check-package-lock.sh
# TravisCI is slower than our local machines, so results in intermittent timeouts
# using the `--runInBand` flag we can force it to without requiring as much
# resources (https://facebook.github.io/jest/docs/en/troubleshooting.html#tests-are-extremely-slow-on-docker-and-or-continuous-integration-ci-server)
- npm test -- --runInBand
# Heroku is configured to automatically deploy the following branches
# once CI passes:
# master -> http://govuk-frontend-review.herokuapp.com/