Skip to content

Commit 7b19e12

Browse files
authored
Merge pull request #3771 from kwonoj/tsc-matrix
ci(travis): expand matrix to test multiple tsc
2 parents c81b8de + f82c085 commit 7b19e12

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

.travis.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ addons:
55
sauce_connect:
66
# Update SAUCE_USERNAME / SAUCE_ACCESS_KEY in travis if necessary
77
# https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings
8-
sauce_connect: true
8+
# TODO: reenable saucelabs once we have update browser tests
9+
# sauce_connect: true
910

1011
cache:
1112
timeout: 1000
@@ -17,30 +18,44 @@ env:
1718
- 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="
1819

1920
matrix:
20-
- NODE_VER=8 FULL_VALIDATE=true alias grunt=./node_modules/grunt-cli/bin/grunt
21-
- NODE_VER=9 FULL_VALIDATE=false
21+
- NODE_VER=8 FULL_VALIDATE=true
22+
- NODE_VER=8 TSC_VERSION=latest
23+
- NODE_VER=8 TSC_VERSION=next
24+
- NODE_VER=9
25+
- NODE_VER=9 TSC_VERSION=latest
26+
- NODE_VER=9 TSC_VERSION=next
27+
- NODE_VER=10
28+
- NODE_VER=10 TSC_VERSION=latest
29+
- NODE_VER=10 TSC_VERSION=next
2230

2331
matrix:
2432
fast_finish: true
33+
allow_failures:
34+
- NODE_VER=8 TSC_VERSION=latest
35+
- NODE_VER=8 TSC_VERSION=next
36+
- NODE_VER=9 TSC_VERSION=latest
37+
- NODE_VER=9 TSC_VERSION=next
38+
- NODE_VER=10 TSC_VERSION=latest
39+
- NODE_VER=10 TSC_VERSION=next
2540

2641
before_install:
2742
- nvm install $NODE_VER
28-
- npm install -g npm@6 && npm install -g npx && node -v && npm -v
43+
- npm install -g npm@6 && node -v && npm -v
2944
- npm install -g yarn
30-
- if [ "$FULL_VALIDATE" == "true" ]; then npm install --no-save [email protected] grunt-cli grunt-contrib-connect grunt-run; fi
3145

3246
install:
3347
- npm ci
3448
- if [ "$FULL_VALIDATE" == "true" ]; then npm run lint && npm run test:circular; fi
3549

3650
script:
51+
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
3752
- if [ "$FULL_VALIDATE" == "true" ] && [ -n "DANGER_GITHUB_API_TOKEN" ]; then echo {} > ./.babelrc && npx danger; fi
3853
- npm run test_check
3954
- npm test
4055
- npm run test:systemjs
56+
- if [ "${TSC_VERSION}" ]; then npm install --no-save typescript@$TSC_VERSION && ./node_modules/.bin/tsc --version && npm run build_cjs ; fi
4157
- if [ "$FULL_VALIDATE" == "true" ] && [ -n "DANGER_GITHUB_API_TOKEN" ]; then cd docs_app && yarn install && yarn run build; fi
4258

4359
after_success:
4460
- if [ "$FULL_VALIDATE" == "true" ]; then npm run test:cover && npx nyc report --reporter=text-lcov | npx coveralls; fi
45-
- 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
46-
- if [ "$FULL_VALIDATE" == "true" ] && [ "$TRAVIS_BRANCH" == "master" ]; then cd docs_app && chmod 755 scripts/deploy-to-firebase.sh && yarn deploy-production; fi
61+
- if [ "$FULL_VALIDATE" == "true" ] && [ "$BRANCH" == "master" ]; then cd docs_app && chmod 755 scripts/deploy-to-firebase.sh && yarn deploy-production; fi

0 commit comments

Comments
 (0)