Created
December 26, 2015 05:28
-
-
Save gritzko/1baac13a7cdf78c32868 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
REPO=$PWD | |
TEST_ROOT=`tempfile -d ~/tmp -p swrm_` | |
rm -rf $TEST_ROOT | |
mkdir -p $TEST_ROOT | |
cd $TEST_ROOT | |
git clone $REPO | |
cd swarm | |
export PATH=$NODE_HOME/bin:/bin:/usr/bin | |
node -v | |
npm -v | |
if ! npm test; then | |
read | |
fi |
This file contains hidden or 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
#!/bin/bash | |
NODES=( "/opt/node-v0.10.41-linux-x64" "/opt/node-v0.11.16-linux-x64" "/opt/node-v5.1.1-linux-x64" "/opt/node-v4.2.3-linux-x64" ) | |
cd ~/Projects/swarm/ | |
for node in "${NODES[@]}"; do | |
NODE_HOME=$node gnome-terminal -e ./clean-test.sh & | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment