ci: update SauceLabs badge when running CI on master (#11352)

This commit is contained in:
Marc Laval 2016-09-06 21:07:48 +02:00 committed by Martin Probst
parent df4c0a3d1f
commit 8858ebc4ab
3 changed files with 13 additions and 4 deletions

View File

@ -7,6 +7,7 @@
[![Downloads](http://img.shields.io/npm/dm/angular2.svg)](https://npmjs.org/package/angular2) [![Downloads](http://img.shields.io/npm/dm/angular2.svg)](https://npmjs.org/package/angular2)
[![Sauce Test Status](https://saucelabs.com/browser-matrix/angular2-ci.svg)](https://saucelabs.com/u/angular2-ci) [![Sauce Test Status](https://saucelabs.com/browser-matrix/angular2-ci.svg)](https://saucelabs.com/u/angular2-ci)
*Safari (7+), iOS (7+), Edge (14) and IE mobile (11) are tested on [BrowserStack][https://www.browserstack.com/].*
Angular Angular
========= =========

View File

@ -59,8 +59,16 @@ if [[ ${TRAVIS} ]]; then
export CXX=g++-4.8 export CXX=g++-4.8
# Used by karma and karma-chrome-launcher # Used by karma and karma-chrome-launcher
export SAUCE_USERNAME=angular-ci # In order to have a meaningful SauceLabs badge on the repo page,
export SAUCE_ACCESS_KEY=9b988f434ff8-fbca-8aa4-4ae3-35442987 # the angular2-ci account is used only when pushing commits to master;
# in all other cases, the regular angular-ci account is used.
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ]; then
export SAUCE_USERNAME=angular2-ci
export SAUCE_ACCESS_KEY=693ebc16208a-0b5b-1614-8d66-a2662f4e
else
export SAUCE_USERNAME=angular-ci
export SAUCE_ACCESS_KEY=9b988f434ff8-fbca-8aa4-4ae3-35442987
fi
export BROWSER_STACK_USERNAME=angularteam1 export BROWSER_STACK_USERNAME=angularteam1
export BROWSER_STACK_ACCESS_KEY=BWCd4SynLzdDcv8xtzsB export BROWSER_STACK_ACCESS_KEY=BWCd4SynLzdDcv8xtzsB
export CHROME_BIN=${HOME}/.chrome/chromium/chrome-linux/chrome export CHROME_BIN=${HOME}/.chrome/chromium/chrome-linux/chrome

View File

@ -17,6 +17,6 @@ cd ../..
./scripts/sauce/sauce_connect_block.sh ./scripts/sauce/sauce_connect_block.sh
SAUCE_ACCESS_KEY=`echo $SAUCE_ACCESS_KEY | rev` SAUCE_ACCESS_KEY=`echo $SAUCE_ACCESS_KEY | rev`
$(npm bin)/karma start ./karma-js.conf.js --single-run --browsers=${KARMA_JS_BROWSERS} $(npm bin)/karma start ./karma-js.conf.js --single-run --browsers=${KARMA_JS_BROWSERS} --reporters internal-angular,saucelabs
echo 'travis_fold:end:test_saucelabs' echo 'travis_fold:end:test_saucelabs'