forked from airbnb/rheostat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (29 loc) · 860 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
23
24
25
26
27
28
29
language: node_js
node_js:
- "6"
- "5"
- "4"
- "iojs"
before_install:
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g npm@1.4.28 ;; 2.*) npm install -g npm@2 ;; esac ; fi'
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi'
before_script:
- 'if [ -n "${REACT-}" ]; then sh install-relevant-react.sh; fi'
script:
- 'if [ -n "${LINT-}" ]; then npm run lint ; 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.13
- TEST=true REACT=0.14
- TEST=true REACT=15
matrix:
fast_finish: true
include:
- node_js: "node"
env: LINT=true
- node_js: "node"
env: COVERAGE=true
allow_failures:
- node_js: "iojs"