Skip to content

Commit

Permalink
[TravisCI]: pyenv with python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov committed Nov 29, 2018
1 parent 6fc8037 commit 47800d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ case $TRAVIS_OS_NAME in
rmdir $CELLAR_CACHE_DIR/$p && brew install $pkg \
|| { brew unlink $p ; brew link --force $p ; }
done
pyenv update
# export PYENV_ROOT="$CELLAR_CACHE_DIR/.pyenv"
export PATH="$(pyenv root)/bin:$PATH"
eval "$(pyenv init -)"
pyenv update
env CFLAGS="-O2 -fPIC" pyenv install -s 3.5.6
;;

linux)
Expand Down
2 changes: 2 additions & 0 deletions .travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ case $TRAVIS_OS_NAME in
osx)
export PATH="/usr/local/opt/qt/bin:$PATH"
export PATH="/usr/local/opt/ccache/libexec:$PATH"
export PKG_CONFIG_PATH="$(python-config --prefix)/lib/pkgconfig"
EXECUTOR=
;;
linux)
Expand All @@ -21,6 +22,7 @@ $EXECUTOR bash -c "export CCACHE_DIR=$HOME/.ccache/$TRAVIS_OS_NAME-$CONFIG \
&& which qmake \
&& qmake -query \
&& ccache -M 0 \
&& pyenv root \
&& pyenv versions \
&& pkg-config --list-all \
&& { which python3 && python3 -V || true ; } \
Expand Down

0 comments on commit 47800d8

Please sign in to comment.