File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -116,10 +116,11 @@ before_cache:
116
116
- chmod -R a+r $HOME/.cache/pyenv
117
117
118
118
cache :
119
- cargo : true
119
+ # There is a "cache: cargo" option but it's fails if target/ isn't in the build dir
120
120
directories :
121
121
- $HOME/.cache/pip
122
122
- $HOME/.cache/pyenv
123
+ - $HOME/.cargo # # this may not be worth it depending on the time it takes to push/pull from S3
123
124
124
125
branches :
125
126
only :
Original file line number Diff line number Diff line change 1
1
set -ex
2
+
3
+ pyenv --version || true
4
+
5
+ # get most up to date pyenv but keep cache of Python versions
2
6
rm -rf ~ /.pyenv
3
7
git clone https://github.com/yyuu/pyenv.git ~ /.pyenv
4
8
mkdir -p ~ /.cache/pyenv/versions
5
9
ln -s ~ /.cache/pyenv/versions ~ /.pyenv/versions
6
10
export PATH=" $HOME /.pyenv/shims:$HOME /.pyenv/bin:$PATH "
11
+ pyenv --version
7
12
pyenv install --skip-existing $PYENV
8
13
pyenv global $PYENV
9
- pyenv --version
10
14
11
15
pyenv rehash
12
16
13
17
python --version
14
18
pip --version
19
+
15
20
pip install -U pip
16
21
pip install -U virtualenv
17
22
python -m virtualenv ~ /.venv
Original file line number Diff line number Diff line change 2
2
set -ex
3
3
4
4
python --version
5
-
6
5
source ~ /.venv/bin/activate
7
6
python --version
7
+
8
8
pip install -U pip
9
9
pip install -r requirements_dev.txt
10
10
make test
11
11
make lint
12
+
13
+ python setup.py bdist_wheel
14
+ ls -la dist
You can’t perform that action at this time.
0 commit comments