-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove special treatment of unsupported node version in travis before…
…-install script
- Loading branch information
Showing
1 changed file
with
2 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,15 +5,5 @@ runSanityTest () { | |
./bin/mocha --opts /dev/null --reporter spec test/sanity/sanity.spec.js | ||
} | ||
|
||
# install [email protected] locally, and try to install production dependencies w/ it. | ||
if [[ ${TRAVIS_NODE_VERSION} =~ 'v0.10' ]] | ||
then | ||
echo "Downgrading to npm v1.4.x..." | ||
npm install npm@~1.4 | ||
./node_modules/.bin/npm install --production | ||
runSanityTest | ||
rm -rf node_modules/ | ||
else | ||
npm install --production | ||
runSanityTest | ||
fi | ||
npm install --production | ||
runSanityTest |