mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
Setting env var `BROWSER_PROVIDER` to `browserstack` or `saucelabs`
determines which browser provider will be used.
This does not affect the build as all jobs are set to use SauceLabs.
Switch to Karma with Socket.io 1.x, which solves some issues(*) with BS.
Thus removing `config.transports` as it is not used anymore
(Socket.io 1.x starts with polling and tries to upgrade if available).
(*) folks from BS were fiddling with socket.io configuration to get it stable.
See 4c04011850
This is not necessary with Socket.io 1.x.
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
language: node_js
|
|
node_js:
|
|
- '0.10'
|
|
|
|
branches:
|
|
except:
|
|
- /^g3_.*$/
|
|
|
|
env:
|
|
matrix:
|
|
- JOB=unit BROWSER_PROVIDER=saucelabs
|
|
- JOB=e2e TEST_TARGET=jqlite BROWSER_PROVIDER=saucelabs
|
|
- JOB=e2e TEST_TARGET=jquery BROWSER_PROVIDER=saucelabs
|
|
global:
|
|
- SAUCE_USERNAME=angular-ci
|
|
- SAUCE_ACCESS_KEY=9b988f434ff8-fbca-8aa4-4ae3-35442987
|
|
- BROWSER_STACK_USERNAME=VojtaJina
|
|
- BROWSER_STACK_ACCESS_KEY=QCQJ1ZpWXpBkSwEdD8ev
|
|
- LOGS_DIR=/tmp/angular-build/logs
|
|
- BROWSER_PROVIDER_READY_FILE=/tmp/browsersprovider-tunnel-ready
|
|
|
|
install:
|
|
# - npm config set registry http://23.251.144.68
|
|
# Disable the spinner, it looks bad on Travis
|
|
- npm config set spin false
|
|
# Log HTTP requests
|
|
- npm config set loglevel http
|
|
- time ./scripts/travis/npm-bundle-deps.sh
|
|
- time npm install
|
|
|
|
before_script:
|
|
- mkdir -p $LOGS_DIR
|
|
- ./scripts/travis/start_browser_provider.sh
|
|
- npm install -g grunt-cli
|
|
- grunt package
|
|
- ./scripts/travis/wait_for_browser_provider.sh
|
|
|
|
script:
|
|
- ./scripts/travis/build.sh
|
|
|
|
after_script:
|
|
- ./scripts/travis/print_logs.sh
|
|
|
|
notifications:
|
|
webhooks:
|
|
urls:
|
|
- https://webhooks.gitter.im/e/d2120f3f2bb39a4531b2
|
|
on_success: change # options: [always|never|change] default: always
|
|
on_failure: always # options: [always|never|change] default: always
|
|
on_start: false # default: false
|