Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 226ad68

Browse files
committed
Merge pull request #296 from douglasduteil/chore-travis-test-matix
chore(travis): use test matrix
2 parents 2d92d0f + 883c249 commit 226ad68

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

.travis.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,31 @@ language: node_js
55
node_js:
66
- 0.10
77
- 0.11
8+
env:
9+
global:
10+
- SAUCE_LABS=false PARSER=false OPTIONS=""
11+
matrix:
12+
- PARSER="traceur"
13+
- PARSER="6to5"
14+
matrix:
15+
include:
16+
- node_js: "0.10"
17+
env: SAUCE_LABS=true PARSER="traceur"
18+
- node_js: "0.10"
19+
env: SAUCE_LABS=true PARSER="6to5"
20+
- node_js: "0.10"
21+
env: SAUCE_LABS=true PARSER="traceur" OPTIONS="--ie8"
22+
- node_js: "0.10"
23+
env: SAUCE_LABS=true PARSER="6to5" OPTIONS="--ie8"
824
before_install:
925
- export CHROME_BIN=chromium-browser
1026
- export DISPLAY=:99.0
1127
- sh -e /etc/init.d/xvfb start
1228
- npm update -g
1329
- npm install -g karma-cli grunt-cli
14-
script:
30+
before_script:
1531
- grunt
16-
- npm test
17-
- npm run test:browser-traceur
18-
- npm run test:browser-6to5
19-
- npm run test:browser-traceur -- --saucelabs
20-
- npm run test:browser-6to5 -- --saucelabs
21-
- npm run test:browser-traceur -- --saucelabs --ie8
22-
- npm run test:browser-6to5 -- --saucelabs --ie8
32+
script:
33+
- npm run test:node
34+
- npm run test:browser-$PARSER
35+
- "[ $SAUCE_LABS == false ] || npm run test:browser-$PARSER -- --saucelabs $OPTIONS"

0 commit comments

Comments
 (0)