1
0

Cache dependencies for Travis build

Also: * Move temporary directory to /tmp
      * Remove files with wrong hash (so we don't have to remove them manually)
This commit is contained in:
Johann Bauer
2018-03-02 20:08:30 +01:00
parent 83f2dc44de
commit 10057b18de
2 changed files with 9 additions and 7 deletions

View File

@@ -42,6 +42,7 @@ verify_hash() {
return 0
else
echo "$file $actual_hash (unexpected hash)" >&2
rm "$file"
exit 1
fi
}
@@ -54,7 +55,7 @@ download_if_not_exist() {
}
# Let's begin!
cd `dirname $0`
here=$(dirname $(readlink -e $0))
set -e
# Clean up Wine environment
@@ -64,11 +65,9 @@ echo "done"
wine 'wineboot'
echo "Cleaning tmp"
mkdir -p tmp
echo "done"
mkdir -p /tmp/electrum-build
cd tmp
cd /tmp/electrum-build
# Install Python
# note: you might need "sudo apt-get install dirmngr" for the following
@@ -94,7 +93,7 @@ $PYTHON -m pip install pywin32-ctypes==0.1.2
# install PySocks
$PYTHON -m pip install win_inet_pton==1.0.1
$PYTHON -m pip install -r ../../deterministic-build/requirements-binaries.txt
$PYTHON -m pip install -r $here/../deterministic-build/requirements-binaries.txt
# Install PyInstaller
$PYTHON -m pip install https://github.com/ecdsa/pyinstaller/archive/fix_2952.zip