fix ci performance regression due to slow setup of python 3.6
This commit is contained in:
parent
a8734185d1
commit
9d75bae8c2
19
.travis.yml
19
.travis.yml
|
@ -1,38 +1,31 @@
|
||||||
dist: trusty
|
dist: xenial
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
language: d
|
language: d
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
#- osx
|
|
||||||
d:
|
d:
|
||||||
- dmd
|
- dmd
|
||||||
# - dmd-nightly
|
|
||||||
- ldc
|
- ldc
|
||||||
# - ldc-beta
|
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- pyenv install 3.6.3
|
- sudo apt-get install python3-pip python3-setuptools
|
||||||
- pyenv global system 3.6.3
|
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
|
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ninja python3; fi
|
|
||||||
- pip3 install 'meson==0.48.2'
|
- pip3 install 'meson==0.48.2'
|
||||||
|
|
||||||
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
|
- mkdir .ntmp && curl -L https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip -o .ntmp/ninja-linux.zip
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then unzip .ntmp/ninja-linux.zip -d .ntmp; fi
|
- unzip .ntmp/ninja-linux.zip -d .ntmp
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- export PATH=$PATH:$PWD/.ntmp
|
- export PATH=$PATH:$PWD/.ntmp
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then meson build && ninja -j8 -C build; fi
|
- meson build && ninja -j8 -C build
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ninja -j8 -C build test -v; fi
|
- ninja -j8 -C build test -v
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then SDKROOT=$(xcodebuild -version -sdk macosx Path) meson build && ninja -j8 -C build test; fi
|
|
||||||
- dub build
|
- dub build
|
||||||
- "dub build dyaml:benchmark"
|
- "dub build dyaml:benchmark"
|
||||||
- "dub build dyaml:constructor"
|
- "dub build dyaml:constructor"
|
||||||
|
|
Loading…
Reference in a new issue