Skip to content

Commit 7ce72cc

Browse files
committed
fix caching
1 parent df0d3aa commit 7ce72cc

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,11 @@ before_cache:
116116
- chmod -R a+r $HOME/.cache/pyenv
117117

118118
cache:
119-
cargo: true
119+
# There is a "cache: cargo" option but it's fails if target/ isn't in the build dir
120120
directories:
121121
- $HOME/.cache/pip
122122
- $HOME/.cache/pyenv
123+
- $HOME/.cargo ## this may not be worth it depending on the time it takes to push/pull from S3
123124

124125
branches:
125126
only:

ci/pyinstall.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
set -ex
2+
3+
pyenv --version || true
4+
5+
# get most up to date pyenv but keep cache of Python versions
26
rm -rf ~/.pyenv
37
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
48
mkdir -p ~/.cache/pyenv/versions
59
ln -s ~/.cache/pyenv/versions ~/.pyenv/versions
610
export PATH="$HOME/.pyenv/shims:$HOME/.pyenv/bin:$PATH"
11+
pyenv --version
712
pyenv install --skip-existing $PYENV
813
pyenv global $PYENV
9-
pyenv --version
1014

1115
pyenv rehash
1216

1317
python --version
1418
pip --version
19+
1520
pip install -U pip
1621
pip install -U virtualenv
1722
python -m virtualenv ~/.venv

ci/pyscript.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
set -ex
33

44
python --version
5-
65
source ~/.venv/bin/activate
76
python --version
7+
88
pip install -U pip
99
pip install -r requirements_dev.txt
1010
make test
1111
make lint
12+
13+
python setup.py bdist_wheel
14+
ls -la dist

0 commit comments

Comments
 (0)