ci, don't use pyenv and install pip3 using apt (#21)

This commit is contained in:
BBasile 2018-12-14 09:26:25 +01:00 committed by GitHub
parent 0a380b0d7f
commit 0c1eda7b91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
dist: trusty dist: xenial
sudo: false sudo: false
language: d language: d
@ -7,18 +7,15 @@ os:
- osx - osx
d: d:
- dmd - dmd
#- dmd-beta
#- dmd-nightly
- ldc - ldc
#- ldc-beta
before_install: before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pyenv global system 3.6; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install python3-pip python3-setuptools; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pip3 install 'meson==0.48.2'; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ninja; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ninja; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade python; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade python; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip3 install 'meson==0.47.2'; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip3 install 'meson==0.48.2'; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pip3 install 'meson==0.47.2'; fi
install: install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir .ntmp && curl -L https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip -o .ntmp/ninja-linux.zip; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir .ntmp && curl -L https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip -o .ntmp/ninja-linux.zip; fi