Skip to content

Commit 26369cf

Browse files
committed
[Tests] node 0.6 can’t support an npm that understands scoped packages
- work around this by installing deps in 0.8 instead.
1 parent 1d3883c commit 26369cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ node_js:
1616
before_install:
1717
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then npm install -g [email protected] ; elif [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g [email protected] ;; 2.*) npm install -g npm@2 ;; esac ; fi'
1818
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi'
19+
install:
20+
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then nvm install 0.8 && npm install -g [email protected] && npm install -g [email protected] && npm install -g npm@2 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
1921
script:
2022
- 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
2123
- 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'

0 commit comments

Comments
 (0)