File tree Expand file tree Collapse file tree 3 files changed +30
-10
lines changed Expand file tree Collapse file tree 3 files changed +30
-10
lines changed Original file line number Diff line number Diff line change 3030 - secure : " fq/U7VDMWO8O8SnAQkdbkoSe2X92PVqg4d044HmRYVmcf6YbO48+xeGJ8yOk0pCBwl3ISO4Q2ot0x546kxfiYBuHkZetlngZxZCtQiFT9kyId8ZKcYdXaIW9OVdw3Gh3tQyUwDucfkVhqcs52D6NZjyE2aWZ4/d1V4kWRO/LMgo="
3131 matrix :
3232 # Order: a slower build first, so that we don't occupy an idle travis worker waiting for others to complete.
33- - MODE=saucelabs_required
34- - MODE=browserstack_required
35- - MODE=saucelabs_optional
36- - MODE=browserstack_optional
33+ - MODE=saucelabs_unit_required
34+ - MODE=browserstack_unit_required
35+ - MODE=saucelabs_unit_optional
36+ - MODE=browserstack_unit_optional
37+ - MODE=saucelabs_e2e_required
38+ - MODE=browserstack_e2e_required
39+ - MODE=saucelabs_e2e_optional
40+ - MODE=browserstack_e2e_optional
3741
3842matrix :
3943 allow_failures :
40- - env : " MODE=saucelabs_optional"
41- - env : " MODE=browserstack_optional"
44+ - env : " MODE=saucelabs_unit_optional"
45+ - env : " MODE=browserstack_unit_optional"
46+ - env : " MODE=saucelabs_e2e_optional"
47+ - env : " MODE=browserstack_e2e_optional"
4248
4349install :
4450 - npm install
@@ -53,7 +59,6 @@ before_script:
5359
5460script :
5561- ./scripts/ci/build-and-test.sh ${MODE}
56- - ./scripts/ci/test-e2e-js.sh
5762
5863cache :
5964 directories :
Original file line number Diff line number Diff line change @@ -48,10 +48,22 @@ teardown_tunnel() {
4848 esac
4949}
5050
51+ run_tests () {
52+ case " $MODE " in
53+ * unit* )
54+ npm run build
55+ karma start test/karma.conf.js --single-run --no-auto-watch --reporters=' dots'
56+ ;;
57+ * e2e* )
58+ ./scripts/ci/test-e2e-js.sh
59+ ;;
60+ * )
61+ ;;
62+ esac
63+ }
64+
5165
5266start_tunnel
5367wait_for_tunnel
54- npm run build
55- karma start test/karma.conf.js --single-run --no-auto-watch --reporters=' dots'
68+ run_tests
5669teardown_tunnel
57-
Original file line number Diff line number Diff line change @@ -13,4 +13,7 @@ exports.config = {
1313 showColors : true ,
1414 defaultTimeoutInterval : 60000
1515 } ,
16+
17+ sauceUser : process . env . SAUCE_USERNAME ,
18+ sauceKey : process . env . SAUCE_ACCESS_KEY ,
1619} ;
You can’t perform that action at this time.
0 commit comments