1 | language: node_js
|
2 | node_js:
|
3 | - "5.1"
|
4 | - "5.0"
|
5 | - "4.2"
|
6 | - "4.1"
|
7 | - "4.0"
|
8 | env:
|
9 | - CHAI_VERSION=^3.0.0
|
10 | - CHAI_VERSION=^4.0.0
|
11 | - ENZYME_VERSION=^2
|
12 | - ENZYME_VERSION=^3
|
13 | before_script:
|
14 | - npm install chai@$CHAI_VERSION
|
15 | - if [ "$ENZYME_VERSION" = "^2" ]; then npm uninstall enzyme-adapter-react-15; npm install cheerio@0.22; fi
|
16 | - npm install enzyme@$ENZYME_VERSION
|
17 | script:
|
18 | - npm test
|