Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build updates: coverage on linux, improved node install, bump to libo…
…smium 2.6.1
- Loading branch information
Dane Springmeyer
committed
Mar 30, 2016
1 parent
62f4437
commit e5b6770
Showing
3 changed files
with
23 additions
and
9 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
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
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 |
---|---|---|
@@ -1,10 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ ${1:-false} == 'false' ]]; then | ||
echo "Error: pass node version as first argument" | ||
exit 1 | ||
fi | ||
|
||
NODE_VERSION=$1 | ||
|
||
# if an existing nvm is already installed we need to unload it | ||
nvm unload || true | ||
|
||
# here we set up the node version on the fly based on the matrix value. | ||
# This is done manually so that the build works the same on OS X | ||
rm -rf ~/.nvm/ && git clone --depth 1 https://github.com/creationix/nvm.git ~/.nvm | ||
NODE_VERSION=$1 | ||
source ~/.nvm/nvm.sh | ||
rm -rf ./__nvm/ && git clone --depth 1 https://github.com/creationix/nvm.git ./__nvm | ||
source ./__nvm/nvm.sh | ||
nvm install ${NODE_VERSION} | ||
nvm use ${NODE_VERSION} | ||
node --version | ||
npm --version | ||
which node | ||
which node |