mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
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:
parent
83f2dc44de
commit
10057b18de
2 changed files with 9 additions and 7 deletions
|
@ -6,7 +6,9 @@ python:
|
||||||
install:
|
install:
|
||||||
- pip install -r contrib/requirements/requirements-travis.txt
|
- pip install -r contrib/requirements/requirements-travis.txt
|
||||||
cache:
|
cache:
|
||||||
- pip
|
- pip: true
|
||||||
|
- directories:
|
||||||
|
- /tmp/electrum-build
|
||||||
script:
|
script:
|
||||||
- tox
|
- tox
|
||||||
after_success:
|
after_success:
|
||||||
|
@ -24,5 +26,6 @@ jobs:
|
||||||
- sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
|
- sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
|
||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
- sudo apt-get install -qq winehq-stable dirmngr gnupg2 p7zip-full
|
- sudo apt-get install -qq winehq-stable dirmngr gnupg2 p7zip-full
|
||||||
|
before_script: ls -lah /tmp/electrum-build
|
||||||
script: ./contrib/build-wine/build.sh
|
script: ./contrib/build-wine/build.sh
|
||||||
after_success: true
|
after_success: true
|
||||||
|
|
|
@ -42,6 +42,7 @@ verify_hash() {
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
echo "$file $actual_hash (unexpected hash)" >&2
|
echo "$file $actual_hash (unexpected hash)" >&2
|
||||||
|
rm "$file"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -54,7 +55,7 @@ download_if_not_exist() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Let's begin!
|
# Let's begin!
|
||||||
cd `dirname $0`
|
here=$(dirname $(readlink -e $0))
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Clean up Wine environment
|
# Clean up Wine environment
|
||||||
|
@ -64,11 +65,9 @@ echo "done"
|
||||||
|
|
||||||
wine 'wineboot'
|
wine 'wineboot'
|
||||||
|
|
||||||
echo "Cleaning tmp"
|
mkdir -p /tmp/electrum-build
|
||||||
mkdir -p tmp
|
|
||||||
echo "done"
|
|
||||||
|
|
||||||
cd tmp
|
cd /tmp/electrum-build
|
||||||
|
|
||||||
# Install Python
|
# Install Python
|
||||||
# note: you might need "sudo apt-get install dirmngr" for the following
|
# 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
|
# install PySocks
|
||||||
$PYTHON -m pip install win_inet_pton==1.0.1
|
$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
|
# Install PyInstaller
|
||||||
$PYTHON -m pip install https://github.com/ecdsa/pyinstaller/archive/fix_2952.zip
|
$PYTHON -m pip install https://github.com/ecdsa/pyinstaller/archive/fix_2952.zip
|
||||||
|
|
Loading…
Add table
Reference in a new issue