Skip to content

Instantly share code, notes, and snippets.

@gritzko
Created December 26, 2015 05:28
Show Gist options
  • Save gritzko/1baac13a7cdf78c32868 to your computer and use it in GitHub Desktop.
Save gritzko/1baac13a7cdf78c32868 to your computer and use it in GitHub Desktop.
#!/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
#!/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