mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-07-28 06:40:03 +00:00
Travis: use choco pyenv
This commit is contained in:
13
.travis.yml
13
.travis.yml
@ -4,10 +4,15 @@ language: c
|
||||
before_install:
|
||||
- export MAIN_PATH=`pwd`
|
||||
# install pyenv to test multiple python version
|
||||
- git clone https://github.com/pyenv/pyenv.git ~/.pyenv
|
||||
- export PYENV_ROOT="$HOME/.pyenv"
|
||||
- eval "$(pyenv init -)"
|
||||
- export PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"
|
||||
- |-
|
||||
case $TRAVIS_OS_NAME in
|
||||
windows)
|
||||
choco install pyenv-win
|
||||
else
|
||||
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
|
||||
export PYENV_ROOT="$HOME/.pyenv"
|
||||
eval "$(pyenv init -)"
|
||||
export PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"
|
||||
# install c dependency
|
||||
- |-
|
||||
if [ "$TRAVIS_OS_NAME" == "linux" ] ; then
|
||||
|
Reference in New Issue
Block a user