forked from gurnec/btcrecover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.install-dependencies.sh
24 lines (16 loc) · 947 Bytes
/
.travis.install-dependencies.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Best practice for Travis CI is to use Python virtualenv instead of the system Python.
# Unfortunately, the virtualenv which Travis CI sets up has a broken bsddb module,
# doesn't have PyCrypto preinstalled, and doesn't play nice with dependencies from
# the Armory .deb distribution, so we just use the system Python instead.
set -e
# Download and install Armory v0.93.3 plus prerequisites
# (v0.94+ is unsupported on Ubuntu 12.04 w/o recompiling libstdc++6)
LATEST="https://github.com/goatpig/BitcoinArmory/releases/download/v0.93.3/armory_0.93.3_ubuntu-64bit.deb"
curl -LfsS --retry 10 -o 'armory.deb' "$LATEST"
sudo apt-get -q update
sudo apt-get -yq install gdebi-core
sudo gdebi -nq armory.deb
# Download, compile, and install prerequisites for bitcoinj wallets
curl -fsS --retry 10 https://bootstrap.pypa.io/get-pip.py | sudo python
sudo /usr/local/bin/pip install -q protobuf scrypt pylibscrypt coincurve pysha3 green