Skip to content

Commit

Permalink
remove special treatment of unsupported node version in travis before…
Browse files Browse the repository at this point in the history
…-install script
  • Loading branch information
boneskull committed Sep 29, 2017
1 parent bc50020 commit f1efc14
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions scripts/travis-before-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f1efc14

Please sign in to comment.