Files
stacks-puppet-node/integration_tests/get_started.sh
2017-04-03 14:50:54 -04:00

38 lines
794 B
Bash
Executable File

#!/bin/bash
BRANCH="rc-0.14.2"
if [ $# -ge 2 ]; then
BRANCH="$1"
shift 1
fi
# sometimes this doesn't install cleanly
pip install --upgrade pip
pip install --upgrade scrypt
pip install --upgrade fastecdsa
pip install --upgrade cryptography
for repo in dns-zone-file-py blockstack-profiles-py virtualchain blockstack-core; do
git clone "https://github.com/blockstack/$repo"
pushd "$repo"
git checkout "$BRANCH"
python ./setup.py build && sudo python ./setup.py install
if [ $? -ne 0 ]; then
echo "Failed to install"
exit 1
fi
if [[ "$repo" == 'blockstack-core' ]]; then
echo "Installing integration tests"
pushd "integration_tests"
python ./setup.py build && sudo python ./setup.py install
popd
fi
popd
done
exit 0