-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3771 from kwonoj/tsc-matrix
ci(travis): expand matrix to test multiple tsc
- Loading branch information
Showing
1 changed file
with
22 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,8 @@ addons: | |
sauce_connect: | ||
# Update SAUCE_USERNAME / SAUCE_ACCESS_KEY in travis if necessary | ||
# https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings | ||
sauce_connect: true | ||
# TODO: reenable saucelabs once we have update browser tests | ||
# sauce_connect: true | ||
|
||
cache: | ||
timeout: 1000 | ||
|
@@ -17,30 +18,44 @@ env: | |
- secure: "wRUxg3L05UjigEq0zPTfW+vFEPdDQrWFB8O3/p/7LYYL1EqnIvQETd/4g5vnzyu4iysPeCHtMY7a+oyX/LM81JD3EU2nzxfY1bRDL6kyU+KrWNhZ6Jf4XosCUQ1vpdD0jBIlpLoTLr056PUNrS/13onnJHVAWzIhjcDwUJXQlyzR8z32SN3Wa6yjQhHwGvQqqdJB/H83H0BcYTCxwKfut58zQZ+RVcubHj6T+K3LI8OPHvZeK2/NiWcaZB/zky5cD9lFiY7lF+/0PhYPw1EYwbzA2dPhyKxy+d8hweCEFMUb5Z9s980tAd8m1IdqGXPZu51lvj7MMWwj4X2vUUtF9XrB4K2Kt11PSyB49bF2brQI2axsyYWZGeW0nsb8+MlHUa3eli7XR6dA6VVeIJT08ULvXUVzEvXiogHE/5G9ZXVFWDgCkFsXdEAtf2EOo3RpCoUYSXmqRvr9ZBP6C/KMYogENQ8JdTk3SXpn8heo6oraBKfOg0DRfoiMVyl7vfOVQYRgbbDGZVJfcHSYpyFQfqKOMlEiSSyh51PL7Dt6BYSCBoUKh8AAAtIi2+exgTuUHwy8fZBBJm5Bbem8Ku9il89gkOWS8jPYxat8/9HlouNO/COBBb3DUPIKEOE+YwLji44GiVOB4bnZ1Hz1ucBZEvYzFSW3/wac7S9fqDaeOVE=" | ||
|
||
matrix: | ||
- NODE_VER=8 FULL_VALIDATE=true alias grunt=./node_modules/grunt-cli/bin/grunt | ||
- NODE_VER=9 FULL_VALIDATE=false | ||
- NODE_VER=8 FULL_VALIDATE=true | ||
- NODE_VER=8 TSC_VERSION=latest | ||
- NODE_VER=8 TSC_VERSION=next | ||
- NODE_VER=9 | ||
- NODE_VER=9 TSC_VERSION=latest | ||
- NODE_VER=9 TSC_VERSION=next | ||
- NODE_VER=10 | ||
- NODE_VER=10 TSC_VERSION=latest | ||
- NODE_VER=10 TSC_VERSION=next | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- NODE_VER=8 TSC_VERSION=latest | ||
- NODE_VER=8 TSC_VERSION=next | ||
- NODE_VER=9 TSC_VERSION=latest | ||
- NODE_VER=9 TSC_VERSION=next | ||
- NODE_VER=10 TSC_VERSION=latest | ||
- NODE_VER=10 TSC_VERSION=next | ||
|
||
before_install: | ||
- nvm install $NODE_VER | ||
- npm install -g npm@6 && npm install -g npx && node -v && npm -v | ||
- npm install -g npm@6 && node -v && npm -v | ||
- npm install -g yarn | ||
- if [ "$FULL_VALIDATE" == "true" ]; then npm install --no-save [email protected] grunt-cli grunt-contrib-connect grunt-run; fi | ||
|
||
install: | ||
- npm ci | ||
- if [ "$FULL_VALIDATE" == "true" ]; then npm run lint && npm run test:circular; fi | ||
|
||
script: | ||
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi) | ||
- if [ "$FULL_VALIDATE" == "true" ] && [ -n "DANGER_GITHUB_API_TOKEN" ]; then echo {} > ./.babelrc && npx danger; fi | ||
- npm run test_check | ||
- npm test | ||
- npm run test:systemjs | ||
- if [ "${TSC_VERSION}" ]; then npm install --no-save typescript@$TSC_VERSION && ./node_modules/.bin/tsc --version && npm run build_cjs ; fi | ||
- if [ "$FULL_VALIDATE" == "true" ] && [ -n "DANGER_GITHUB_API_TOKEN" ]; then cd docs_app && yarn install && yarn run build; fi | ||
|
||
after_success: | ||
- if [ "$FULL_VALIDATE" == "true" ]; then npm run test:cover && npx nyc report --reporter=text-lcov | npx coveralls; fi | ||
- if [ "$FULL_VALIDATE" == "true" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ -n "$SAUCE_ACCESS_KEY" ]; then npm run build_spec_browser && grunt --gruntfile spec/support/mocha.sauce.gruntfile.js; fi | ||
- if [ "$FULL_VALIDATE" == "true" ] && [ "$TRAVIS_BRANCH" == "master" ]; then cd docs_app && chmod 755 scripts/deploy-to-firebase.sh && yarn deploy-production; fi | ||
- if [ "$FULL_VALIDATE" == "true" ] && [ "$BRANCH" == "master" ]; then cd docs_app && chmod 755 scripts/deploy-to-firebase.sh && yarn deploy-production; fi |