mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-08-04 08:04:45 +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:
|
before_install:
|
||||||
- export MAIN_PATH=`pwd`
|
- export MAIN_PATH=`pwd`
|
||||||
# install pyenv to test multiple python version
|
# install pyenv to test multiple python version
|
||||||
- git clone https://github.com/pyenv/pyenv.git ~/.pyenv
|
- |-
|
||||||
- export PYENV_ROOT="$HOME/.pyenv"
|
case $TRAVIS_OS_NAME in
|
||||||
- eval "$(pyenv init -)"
|
windows)
|
||||||
- export PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"
|
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
|
# install c dependency
|
||||||
- |-
|
- |-
|
||||||
if [ "$TRAVIS_OS_NAME" == "linux" ] ; then
|
if [ "$TRAVIS_OS_NAME" == "linux" ] ; then
|
||||||
|
Reference in New Issue
Block a user