angular-cn/.travis.yml

64 lines
1.9 KiB
YAML
Raw Normal View History

2014-09-29 17:20:23 -04:00
language: node_js
sudo: false
2014-09-29 17:20:23 -04:00
node_js:
- '0.12'
cache:
directories:
- node_modules
2014-09-29 17:20:23 -04:00
env:
2014-10-28 06:51:00 -04:00
global:
- KARMA_BROWSERS=DartiumWithWebPlatform
- E2E_BROWSERS=Dartium
2014-09-29 17:20:23 -04:00
- LOGS_DIR=/tmp/angular-build/logs
- 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"}'
matrix:
- MODE=js DART_CHANNEL=dev
- MODE=dart DART_CHANNEL=stable
2015-02-13 17:59:29 -05:00
- MODE=dart DART_CHANNEL=dev
2014-09-29 17:20:23 -04:00
before_install:
- echo ${TSDRC} > .tsdrc
2014-09-29 17:20:23 -04:00
- export DISPLAY=:99.0
- export GIT_SHA=$(git rev-parse HEAD)
- ./scripts/ci/init_android.sh
2015-02-13 17:59:29 -05:00
- ./scripts/ci/install_dart.sh ${DART_CHANNEL} ${ARCH}
2014-09-29 17:20:23 -04:00
- sh -e /etc/init.d/xvfb start
- if [[ -e SKIP_TRAVIS_TESTS ]]; then { cat SKIP_TRAVIS_TESTS ; exit 0; } fi
install:
# Update npm
- npm install -g npm@2.7.4
- npm --version
# Check the size of caches
- du -sh ./node_modules || true
# Install npm dependecies and ensure that npm cache is not stale
- tools/npm/install-dependencies.sh
2014-09-29 17:20:23 -04:00
before_script:
- mkdir -p $LOGS_DIR
2014-09-29 17:20:23 -04:00
script:
2015-02-13 17:59:29 -05:00
- ./scripts/ci/build_and_test.sh ${MODE}
2014-09-29 17:20:23 -04:00
after_script:
- ./scripts/ci/print-logs.sh
2015-03-07 14:57:51 -05:00
notifications:
webhooks:
urls:
2015-03-12 18:08:40 -04:00
- https://webhooks.gitter.im/e/1ef62e23078036f9cee4
2015-03-07 14:57:51 -05:00
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
2015-03-12 18:08:40 -04:00
slack:
secure: EP4MzZ8JMyNQJ4S3cd5LEPWSMjC7ZRdzt3veelDiOeorJ6GwZfCDHncR+4BahDzQAuqyE/yNpZqaLbwRWloDi15qIUsm09vgl/1IyNky1Sqc6lEknhzIXpWSalo4/T9ZP8w870EoDvM/UO+LCV99R3wS8Nm9o99eLoWVb2HIUu0=