Skip to content

Commit ae46c5f

Browse files
committed
fix travis issues
1 parent 4b5da0b commit ae46c5f

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

.travis.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ matrix:
2222
# - env: TARGET=x86_64-unknown-linux-gnu PYENV=2.7.13
2323
- env: TARGET=x86_64-unknown-linux-musl PYENV=2.7.13
2424

25-
# - env: TARGET=i686-unknown-linux-gnu PYENV=3.5.5
26-
# - env: TARGET=i686-unknown-linux-musl PYENV=3.5.5
27-
- env: TARGET=x86_64-unknown-linux-gnu PYENV=3.5.5
28-
# - env: TARGET=x86_64-unknown-linux-musl PYENV=3.5.5
25+
# - env: TARGET=i686-unknown-linux-gnu PYENV=3.6.1
26+
# - env: TARGET=i686-unknown-linux-musl PYENV=3.6.1
27+
- env: TARGET=x86_64-unknown-linux-gnu PYENV=3.6.1
28+
# - env: TARGET=x86_64-unknown-linux-musl PYENV=3.6.1
2929

3030
# OSX
3131
- env: TARGET=i686-apple-darwin PYENV=2.7.13
3232
os: osx
3333
# - env: TARGET=x86_64-apple-darwin PYENV=2.7.13
3434
# os: osx
3535

36-
# - env: TARGET=i686-apple-darwin PYENV=3.5.5
36+
# - env: TARGET=i686-apple-darwin PYENV=3.6.1
3737
# os: osx
38-
- env: TARGET=x86_64-apple-darwin PYENV=3.5.5
38+
- env: TARGET=x86_64-apple-darwin PYENV=3.6.1
3939
os: osx
4040

4141

@@ -72,15 +72,13 @@ install:
7272

7373
script:
7474
- bash ci/script.sh
75-
- bash ci/py_test.sh
75+
- bash ci/pyscript.sh
7676

7777
after_script: set +e
7878

7979
before_deploy:
8080
- sh ci/before_deploy.sh
8181

82-
83-
8482
deploy:
8583
# After you create the Github repo and add it to Travis, run the
8684
# travis_pypi_setup.py script to finish PyPI deployment setup
@@ -112,10 +110,16 @@ deploy:
112110
tags: true
113111
skip_cleanup: true
114112

115-
cache: cargo
116113
before_cache:
117114
# Travis can't cache files that are not readable by "others"
118-
- chmod -R a+r $HOME/.cargo
115+
- chmod -R a+r $HOME/.cache/pip
116+
- chmod -R a+r $HOME/.cache/pyenv
117+
118+
cache:
119+
cargo: true
120+
directories:
121+
- $HOME/.cache/pip
122+
- $HOME/.cache/pyenv
119123

120124
branches:
121125
only:
@@ -125,4 +129,7 @@ branches:
125129

126130
notifications:
127131
email:
128-
on_success: never
132+
recipients:
133+
134+
on_success: never
135+
on_failure: always # default: always

ci/pyinstall.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
set -ex
2-
printenv || true
3-
echo $PATH || true
4-
eval "$(pyenv init -)" || true
5-
pyenv versions || true
6-
ls -la ~/ || true
7-
82
rm -rf ~/.pyenv
93
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
104
mkdir -p ~/.cache/pyenv/versions

0 commit comments

Comments
 (0)