Skip to content

Commit

Permalink
build(): First version of using SauceLabs and BrowserStack on travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
hansl committed Jan 15, 2016
1 parent 4674c44 commit fa98a37
Show file tree
Hide file tree
Showing 8 changed files with 536 additions and 50 deletions.
34 changes: 33 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,41 @@
sudo: false
# TODO(hansl): When we're ready to test for Dart, readd every mention of Dart to this file.
# Base the Dart config on the main repo travis.yml file.

language: node_js
sudo: false

node_js:
- '4.2.3'

cache:
directories:
- node_modules

env:
global:
- LOGS_DIR=/tmp/angular-material-build/logs
- SAUCE_USERNAME=angular-ci
- SAUCE_ACCESS_KEY=9b988f434ff8-fbca-8aa4-4ae3-35442987
- BROWSER_STACK_USERNAME=angularteam1
- BROWSER_STACK_ACCESS_KEY=BWCd4SynLzdDcv8xtzsB
- ARCH=linux-x64
# Token for tsd to increase github rate limit
# See https://github.com/DefinitelyTyped/tsd#tsdrc
# This does not use http://docs.travis-ci.com/user/environment-variables/#Secure-Variables
# because those are not visible for pull requests, and those should also be reliable.
# This SSO token belongs to github account angular-github-ratelimit-token which has no access
# (password is in Valentine)
- TSDRC='{"token":"ef474500309daea53d5991b3079159a29520a40b"}'
# GITHUB_TOKEN_ANGULAR
- secure: "fq/U7VDMWO8O8SnAQkdbkoSe2X92PVqg4d044HmRYVmcf6YbO48+xeGJ8yOk0pCBwl3ISO4Q2ot0x546kxfiYBuHkZetlngZxZCtQiFT9kyId8ZKcYdXaIW9OVdw3Gh3tQyUwDucfkVhqcs52D6NZjyE2aWZ4/d1V4kWRO/LMgo="
matrix:
# Order: a slower build first, so that we don't occupy an idle travis worker waiting for others to complete.
- MODE=saucelabs_required
- MODE=browserstack_required
- MODE=saucelabs_optional
- MODE=browserstack_optional


addons:
firefox: "latest"

Expand Down
46 changes: 0 additions & 46 deletions karma.conf.js

This file was deleted.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"url": "https://github.com/angular/material2.git"
},
"scripts": {
"demo-app": "cd src && ng serve"
"demo-app": "cd src && ng serve",
"test": "karma start test/karma.conf.js"
},
"version": "2.0.0-alpha.0",
"license": "Apache-2.0",
Expand All @@ -33,8 +34,10 @@
"ember-cli-inject-live-reload": "^1.3.0",
"jasmine-core": "^2.3.4",
"karma": "^0.13.15",
"karma-browserstack-launcher": "^0.1.7",
"karma-chrome-launcher": "^0.2.1",
"karma-firefox-launcher": "^0.1.7",
"karma-jasmine": "^0.3.6"
"karma-jasmine": "^0.3.6",
"karma-sauce-launcher": "^0.2.14"
}
}
2 changes: 1 addition & 1 deletion scripts/ci/build-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ SCRIPT_DIR=$(dirname $0)
cd ${SCRIPT_DIR}/../..

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

0 comments on commit fa98a37

Please sign in to comment.