Skip to content

Commit 8865f0e

Browse files
committed
Cache parity bin directory
1 parent 0c551d7 commit 8865f0e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ dist: trusty
44
env:
55
global:
66
- GETH_BASE_INSTALL_PATH=$TRAVIS_BUILD_DIR/gethbin
7+
- PARITY_BASE_INSTALL_PATH=$TRAVIS_BUILD_DIR/paritybin
78
matrix:
89
include:
910
#
@@ -59,12 +60,13 @@ cache:
5960
- directories:
6061
- $HOME/.ethash/
6162
- $GETH_BASE_INSTALL_PATH/
63+
- $PARITY_BASE_INSTALL_PATH/
6264
before_install:
6365
- if [ -n "$GETH_VERSION" ]; then mkdir -p $HOME/.ethash; fi
6466
install:
6567
- travis_retry pip install pip setuptools --upgrade
6668
- travis_retry pip install tox
67-
- [ -n "$PARITY_VERSION" ]; travis_retry pip install eth_utils tqdm requests
69+
- if [ -n "$PARITY_VERSION" ]; then travis_retry pip install eth_utils tqdm requests; fi
6870
before_script:
6971
- python --version
7072
- pip --version

tests/integration/install_parity.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def get_binary_uri(releases_json):
4545

4646
def get_executable_path(version_string):
4747
identifier = VERSION_STRINGS[version_string]
48-
path = os.path.join(BASE_BIN_PATH, 'parity-{0}'.format(identifier))
48+
base_path = os.environ.get('PARITY_BASE_INSTALL_PATH', BASE_BIN_PATH)
49+
path = os.path.join(base_path, 'parity-{0}'.format(identifier))
4950
return os.path.expanduser(path)
5051

5152

0 commit comments

Comments
 (0)