openethereum/js/scripts/install-deps.sh
Jaco Greeff 346fe0b509 Make JS lint & test run on Travis (#2894)
* Make JS lint & test run on Travis

* Update node version required

* 6, any latest node 6

* Travis node_version

* query node & npm versions

* last attempt, use nvm directly
2016-10-31 13:00:02 +01:00

18 lines
275 B
Bash
Executable File

#!/bin/bash
# change into the js directory (one down from scripts)
pushd `dirname $0`
cd ..
# install deps and store the exit code
EXITCODE=0
node --version
npm --version
npm install --progress=false || EXITCODE=1
# back to root
popd
# exit with exit code
exit $EXITCODE