forked from gurnec/btcrecover
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.install-dependencies.sh
28 lines (19 loc) · 1.24 KB
/
.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
25
26
27
28
#!/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 the latest v0.92.x Armory release plus prerequisites
# (v0.93+ is unsupported on Ubuntu 12.04 w/o recompiling libstdc++6)
DOWNLOADS="`curl -fsS --retry 10 https://s3.amazonaws.com/bitcoinarmory-media/announce.txt | awk '/^downloads/{print $2}'`"
echo "$DOWNLOADS" | grep -q '^https://' || { echo "Can't find Armory downloads URL"; exit 1; }
LATEST="`curl -fsS --retry 10 \"$DOWNLOADS\" | grep '^Armory 0\.92\.[0-9.]* Ubuntu [0-9.,]*12\.04[0-9.,]* 64 ' | sort -k 2V | tail -1 | awk '{print $6}'`"
echo "$LATEST" | grep -q '^https://' || { echo "Can't find latest Armory download URL"; exit 1; }
curl -fsS --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
sudo apt-get -yq install python-pip
sudo /usr/bin/pip install -q protobuf scrypt pylibscrypt