forked from alphagov/govuk-frontend
-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
46 lines (40 loc) · 1.73 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
language: node_js
notifications:
email: false
jobs:
include:
- name: 🧪 Run test suite
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 resource.
# https://facebook.github.io/jest/docs/en/troubleshooting.html#tests-are-extremely-slow-on-docker-and-or-continuous-integration-ci-server
- npm test -- --runInBand
# Ensure that the Sass compiles using the minimum versions of the compilers
# that we aim to support
- name: 📚 Test Sass compiles using LibSass v3.3.0
node_js: 4 # Node 4 required for oldest version of node-sass we support
install: npm install -g [email protected] # node-sass v3.4.0 = libsass v3.3.0
script:
- node-sass --version
- time node-sass src/govuk/all.scss > /dev/null
- name: 🎯 Test Sass compiles using Dart Sass v1.0.0
node_js: 8 # Assumed based on release date of dart-sass v1.0.0
install: npm install -g [email protected]
script:
- sass --version
- time sass src/govuk/all.scss > /dev/null
- name: 💎 Test Sass compiles using Ruby Sass v3.4.0 (deprecated)
language: ruby
rvm: 1.9.3-p551 # Assumed based on release date of Ruby Sass v3.4.0
install: gem install sass -v 3.4.0
script:
- sass --version
- time sass src/govuk/all.scss > /dev/null
# Heroku is configured to automatically deploy the following branches
# once CI passes:
# master -> http://govuk-frontend-review.herokuapp.com/