mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-11 08:37:40 +08:00
38 lines
794 B
Bash
Executable File
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
|
|
|