Skip to content

Commit 854f817

Browse files
committed
always checkout new pyenv
1 parent f2ff680 commit 854f817

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ cache:
119119
# There is a "cache: cargo" option but it's fails if target/ isn't in the build dir
120120
directories:
121121
- $HOME/.cache/pip
122-
- $HOME/.pyenv
122+
- $HOME/.cache/pyenv
123123
- $HOME/.cargo ## this may not be worth it depending on the time it takes to push/pull from S3
124124

125125
branches:

ci/pyinstall.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@ set -ex
22

33
PATH="$HOME/.pyenv/shims:$HOME/.pyenv/bin:$PATH"
44
pyenv --version || true
5-
6-
if [ -d "$HOME/.pyenv" ]; then
5+
if [ -d "$HOME/.pyenv/.git" ]; then
6+
# for local testing
77
pushd "$HOME/.pyenv"
88
git pull
99
popd
1010
else
11+
rm -rf ~/.pyenv
1112
git clone https://github.com/yyuu/pyenv.git $HOME/.pyenv
13+
mkdir -p ~/.cache/pyenv/versions
14+
ln -s ~/.cache/pyenv/versions ~/.pyenv/versions
1215
fi
1316

1417
if [ -z ${PYENV+x} ]; then

0 commit comments

Comments
 (0)