Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Commit

Permalink
Test out building in diff node version than test
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Levine committed Oct 23, 2016
1 parent 87b5ece commit f4ec01d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ node_js:
- "5"
- "6"

before_script: 'if [ -n "${BABEL-}" ]; then make bootstrap-babel ; fi'
before_install:
- . $HOME/.nvm/nvm.sh
- nvm install stable && nvm use stable

before_script:
- 'if [ -n "${BABEL-}" ]; then make bootstrap-babel ; fi'
- 'npm run build'
- 'nvm use $TRAVIS_NODE_VERSION; echo "Switched to node $TRAVIS_NODE_VERSION"'

script:
- 'if [ -n "${LINT-}" ]; then npm run lint ; fi'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"preversion": "npm run test && npm run changelog",
"test": "npm run lint && npm run flow && npm run build && npm run test-only",
"test-only": "ava test",
"test-ci": "cross-env BABEL_ENV=test npm run build && nyc npm run test-only",
"test-ci": "cross-env BABEL_ENV=test nyc npm run test-only",
"changelog": "git log `git describe --tags --abbrev=0`..HEAD --pretty=format:' * %s (%an)' | grep -v 'Merge pull request'"
},
"nyc": {
Expand Down

0 comments on commit f4ec01d

Please sign in to comment.