forked from airbnb/rheostat
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
42 lines (42 loc) · 1.01 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
language: node_js
os:
- linux
node_js:
- "11"
- "10"
- "9"
- "8"
- "7"
- "6"
- "iojs"
before_install:
- 'nvm install-latest-npm'
install:
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ] || [ "${TRAVIS_NODE_VERSION}" = "0.9" ]; then nvm install --latest-npm 0.8 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
script:
- 'if [ -n "${LINT-}" ]; then npm run lint ; fi'
- 'if [ -n "${BUILD-}" ]; then npm run build ; fi'
- 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
- 'if [ -n "${COVERAGE-}" ]; then npm run test ; fi'
- 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
sudo: false
env:
- TEST=true REACT=0.15
- TEST=true REACT=15.4
- TEST=true REACT=15
- TEST=true REACT=16
matrix:
fast_finish: true
include:
- node_js: "lts/*"
env: LINT=true
- node_js: "lts/*"
env: BUILD=true
- node_js: "lts/*"
env: COVERAGE=true
allow_failures:
- node_js: "11"
- node_js: "9"
- node_js: "7"
- node_js: "5"
- node_js: "iojs"