forked from enzymejs/enzyme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (68 loc) · 1.98 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
language: node_js
node_js:
- "6"
- "5"
- "4"
- "0.12"
- "0.10"
before_install:
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g [email protected] ;; 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: "sh install-relevant-react.sh"
script:
- 'if [ -z "$REACT" ] && [ "${TRAVIS_NODE_VERSION}" = "4" ]; then npm run test:env -- "${EXAMPLE}" ; elif [ -z "$REACT" ]; then echo "Test Skipped" ; elif [ "${TRAVIS_NODE_VERSION}" = "4" ]; then npm run lint && npm run travis ; elif [ "${TRAVIS_NODE_VERSION}" = "0.12" ] || [ "${TRAVIS_NODE_VERSION}" = "0.10" ]; then npm run travis ; else npm test ; fi'
after_script:
- 'if [ "${TRAVIS_NODE_VERSION}" = "4" ] || [ "${TRAVIS_NODE_VERSION}" = "0.12" ]; then cat ./coverage/lcov.info | ./node_modules/.bin/coveralls ; fi'
env:
- REACT=0.13
- REACT=0.14
- REACT=15
- EXAMPLE=mocha
- EXAMPLE=karma
- EXAMPLE=react-native
- EXAMPLE=karma-webpack
- EXAMPLE=jest
sudo: false
matrix:
fast_finish: true
exclude:
- node_js: "5"
env: EXAMPLE=mocha
- node_js: "5"
env: EXAMPLE=karma
- node_js: "5"
env: EXAMPLE=react-native
- node_js: "5"
env: EXAMPLE=karma-webpack
- node_js: "5"
env: EXAMPLE=jest
- node_js: "4"
env: EXAMPLE=mocha
- node_js: "4"
env: EXAMPLE=karma
- node_js: "4"
env: EXAMPLE=react-native
- node_js: "4"
env: EXAMPLE=karma-webpack
- node_js: "4"
env: EXAMPLE=jest
- node_js: "0.12"
env: EXAMPLE=mocha
- node_js: "0.12"
env: EXAMPLE=karma
- node_js: "0.12"
env: EXAMPLE=react-native
- node_js: "0.12"
env: EXAMPLE=karma-webpack
- node_js: "0.12"
env: EXAMPLE=jest
- node_js: "0.10"
env: EXAMPLE=mocha
- node_js: "0.10"
env: EXAMPLE=karma
- node_js: "0.10"
env: EXAMPLE=react-native
- node_js: "0.10"
env: EXAMPLE=karma-webpack
- node_js: "0.10"
env: EXAMPLE=jest