Skip to content

Commit

Permalink
ci(travis): expand matrix to test multiple tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj committed Jun 1, 2018
1 parent c81b8de commit bdfe84e
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -17,17 +18,30 @@ 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
Expand All @@ -38,9 +52,9 @@ script:
- 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" ] && [ "$TRAVIS_BRANCH" == "master" ]; then cd docs_app && chmod 755 scripts/deploy-to-firebase.sh && yarn deploy-production; fi

0 comments on commit bdfe84e

Please sign in to comment.