File tree Expand file tree Collapse file tree 4 files changed +30
-11
lines changed Expand file tree Collapse file tree 4 files changed +30
-11
lines changed Original file line number Diff line number Diff line change 30
30
- secure : " fq/U7VDMWO8O8SnAQkdbkoSe2X92PVqg4d044HmRYVmcf6YbO48+xeGJ8yOk0pCBwl3ISO4Q2ot0x546kxfiYBuHkZetlngZxZCtQiFT9kyId8ZKcYdXaIW9OVdw3Gh3tQyUwDucfkVhqcs52D6NZjyE2aWZ4/d1V4kWRO/LMgo="
31
31
matrix :
32
32
# 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
37
41
38
42
matrix :
39
43
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"
42
48
43
49
install :
44
50
- npm install
@@ -53,7 +59,6 @@ before_script:
53
59
54
60
script :
55
61
- ./scripts/ci/build-and-test.sh ${MODE}
56
- - ./scripts/ci/test-e2e-js.sh
57
62
58
63
cache :
59
64
directories :
Original file line number Diff line number Diff line change @@ -48,10 +48,22 @@ teardown_tunnel() {
48
48
esac
49
49
}
50
50
51
+ # Run the tests for this run (either unit or e2e).
52
+ run_tests () {
53
+ case " $MODE " in
54
+ * unit* )
55
+ npm run build
56
+ karma start test/karma.conf.js --single-run --no-auto-watch --reporters=' dots'
57
+ ;;
58
+ * e2e* )
59
+ ./scripts/ci/test-e2e-js.sh
60
+ ;;
61
+ * )
62
+ ;;
63
+ esac
64
+ }
51
65
52
66
start_tunnel
53
67
wait_for_tunnel
54
- npm run build
55
- karma start test/karma.conf.js --single-run --no-auto-watch --reporters=' dots'
68
+ run_tests
56
69
teardown_tunnel
57
-
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ function killServer () {
12
12
kill $serverPid
13
13
}
14
14
15
-
16
15
./node_modules/.bin/ng serve&
17
16
serverPid=$!
18
17
Original file line number Diff line number Diff line change @@ -13,4 +13,7 @@ exports.config = {
13
13
showColors : true ,
14
14
defaultTimeoutInterval : 60000
15
15
} ,
16
+
17
+ sauceUser : process . env . SAUCE_USERNAME ,
18
+ sauceKey : process . env . SAUCE_ACCESS_KEY ,
16
19
} ;
You can’t perform that action at this time.
0 commit comments