Skip to content

Commit

Permalink
[Tests] test on both core-js 3 and 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Apr 7, 2019
1 parent 494ba19 commit 9c4e491
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ before_install:
- 'nvm install-latest-npm'
install:
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ] || [ "${TRAVIS_NODE_VERSION}" = "0.9" ]; then nvm install --latest-npm 0.8 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
- 'if [ -n "${COREJS}" ]; then npm install --no-save "core-js@${COREJS}"; fi'
script:
- 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
- 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
Expand All @@ -32,6 +33,10 @@ env:
matrix:
fast_finish: true
include:
- node_js: "lts/*"
env: TEST=true COREJS=2
- node_js: "0.10"
env: TEST=true COREJS=2
- node_js: "lts/*"
env: PRETEST=true
- node_js: "lts/*"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"devDependencies": {
"@ljharb/eslint-config": "^13.1.1",
"core-js": "^2.6.5",
"core-js": "^2.6.5 || ^3",
"covert": "^1.1.1",
"es6-shim": "^0.35.5",
"eslint": "^5.16.0",
Expand Down

0 comments on commit 9c4e491

Please sign in to comment.