Skip to content

Commit fa98a37

Browse files
committed
build(): First version of using SauceLabs and BrowserStack on travis.
1 parent 4674c44 commit fa98a37

8 files changed

+536
-50
lines changed

.travis.yml

+33-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,41 @@
1-
sudo: false
1+
# TODO(hansl): When we're ready to test for Dart, readd every mention of Dart to this file.
2+
# Base the Dart config on the main repo travis.yml file.
3+
24
language: node_js
5+
sudo: false
36

47
node_js:
58
- '4.2.3'
69

10+
cache:
11+
directories:
12+
- node_modules
13+
14+
env:
15+
global:
16+
- LOGS_DIR=/tmp/angular-material-build/logs
17+
- SAUCE_USERNAME=angular-ci
18+
- SAUCE_ACCESS_KEY=9b988f434ff8-fbca-8aa4-4ae3-35442987
19+
- BROWSER_STACK_USERNAME=angularteam1
20+
- BROWSER_STACK_ACCESS_KEY=BWCd4SynLzdDcv8xtzsB
21+
- ARCH=linux-x64
22+
# Token for tsd to increase github rate limit
23+
# See https://github.com/DefinitelyTyped/tsd#tsdrc
24+
# This does not use http://docs.travis-ci.com/user/environment-variables/#Secure-Variables
25+
# because those are not visible for pull requests, and those should also be reliable.
26+
# This SSO token belongs to github account angular-github-ratelimit-token which has no access
27+
# (password is in Valentine)
28+
- TSDRC='{"token":"ef474500309daea53d5991b3079159a29520a40b"}'
29+
# GITHUB_TOKEN_ANGULAR
30+
- secure: "fq/U7VDMWO8O8SnAQkdbkoSe2X92PVqg4d044HmRYVmcf6YbO48+xeGJ8yOk0pCBwl3ISO4Q2ot0x546kxfiYBuHkZetlngZxZCtQiFT9kyId8ZKcYdXaIW9OVdw3Gh3tQyUwDucfkVhqcs52D6NZjyE2aWZ4/d1V4kWRO/LMgo="
31+
matrix:
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
37+
38+
739
addons:
840
firefox: "latest"
941

karma.conf.js

-46
This file was deleted.

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"url": "https://github.com/angular/material2.git"
99
},
1010
"scripts": {
11-
"demo-app": "cd src && ng serve"
11+
"demo-app": "cd src && ng serve",
12+
"test": "karma start test/karma.conf.js"
1213
},
1314
"version": "2.0.0-alpha.0",
1415
"license": "Apache-2.0",
@@ -33,8 +34,10 @@
3334
"ember-cli-inject-live-reload": "^1.3.0",
3435
"jasmine-core": "^2.3.4",
3536
"karma": "^0.13.15",
37+
"karma-browserstack-launcher": "^0.1.7",
3638
"karma-chrome-launcher": "^0.2.1",
3739
"karma-firefox-launcher": "^0.1.7",
38-
"karma-jasmine": "^0.3.6"
40+
"karma-jasmine": "^0.3.6",
41+
"karma-sauce-launcher": "^0.2.14"
3942
}
4043
}

scripts/ci/build-and-test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ SCRIPT_DIR=$(dirname $0)
88
cd ${SCRIPT_DIR}/../..
99

1010
ng build
11-
karma start --single-run --no-auto-watch --reporters='dots'
11+
karma start test/karma.conf.js --single-run --no-auto-watch --reporters='dots'

0 commit comments

Comments
 (0)