|
1 |
| -# Build matrix / environment variable are explained on: |
| 1 | +# Build matrix / environment variables are explained on: |
2 | 2 | # http://about.travis-ci.org/docs/user/build-configuration/
|
3 | 3 | # This file can be validated on:
|
4 | 4 | # http://lint.travis-ci.org/
|
5 | 5 | # See also
|
6 | 6 | # http://stackoverflow.com/questions/22111549/travis-ci-with-clang-3-4-and-c11/30925448#30925448
|
7 | 7 | # to allow C++11, though we are not yet building with -std=c++11
|
8 | 8 |
|
9 |
| -#before_install: pyenv install 3.5.4 && pyenv global 3.5.4 |
10 |
| -before_install: pyenv global 3.6 |
11 |
| -# https://docs.travis-ci.com/user/languages/python/ |
12 |
| -# "for Trusty, this means 2.7.6 and 3.4.3" |
| 9 | +before_install: |
| 10 | +- source travis.before_install.${TRAVIS_OS_NAME}.sh |
13 | 11 | install:
|
14 |
| -- if [[ $TRAVIS_OS_NAME == osx ]]; then |
15 |
| - brew update; |
16 |
| - brew install python3 ninja; |
17 |
| - python3 -m venv venv; |
18 |
| - source venv/bin/activate; |
19 |
| - elif [[ $TRAVIS_OS_NAME == linux ]]; then |
20 |
| - wget https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-linux.zip; |
21 |
| - unzip -q ninja-linux.zip -d build; |
22 |
| - fi |
23 |
| -- pip3 install meson |
24 |
| -# /usr/bin/gcc is 4.6 always, but gcc-X.Y is available. |
25 |
| -- if [[ $CXX = g++ ]]; then export CXX="g++-4.9" CC="gcc-4.9"; fi |
26 |
| -# /usr/bin/clang has a conflict with gcc, so use clang-X.Y. |
27 |
| -- if [[ $CXX = clang++ ]]; then export CXX="clang++-3.5" CC="clang-3.5"; fi |
28 |
| -- echo ${PATH} |
29 |
| -- ls /usr/local |
30 |
| -- ls /usr/local/bin |
31 |
| -- export PATH="${PWD}"/build:/usr/local/bin:/usr/bin:${PATH} |
32 |
| -- echo ${CXX} |
33 |
| -- ${CXX} --version |
34 |
| -- which valgrind |
| 12 | +- source travis.install.${TRAVIS_OS_NAME}.sh |
35 | 13 | addons:
|
36 | 14 | apt:
|
37 | 15 | sources:
|
38 |
| - - ubuntu-toolchain-r-test |
| 16 | + #- ubuntu-toolchain-r-test |
39 | 17 | - llvm-toolchain-precise-3.5
|
40 | 18 | packages:
|
41 |
| - - gcc-4.9 |
42 |
| - - g++-4.9 |
| 19 | + #- gcc-4.9 |
| 20 | + #- g++-4.9 |
43 | 21 | - clang-3.5
|
44 | 22 | - valgrind
|
45 |
| -os: |
46 |
| - - linux |
47 | 23 | language: cpp
|
48 |
| -compiler: |
49 |
| - - gcc |
50 |
| - - clang |
51 | 24 | script: ./travis.sh
|
52 |
| -env: |
53 |
| - matrix: |
54 |
| - - LIB_TYPE=static BUILD_TYPE=release |
55 |
| - - LIB_TYPE=shared BUILD_TYPE=debug |
| 25 | +matrix: |
| 26 | + allow_failures: |
| 27 | + - os: osx |
| 28 | +matrix: |
| 29 | + include: |
| 30 | + - os: osx |
| 31 | + osx_image: xcode9.4 |
| 32 | + compiler: clang |
| 33 | + #env: PYENV_ROOT=/usr/local/var/pyenv |
| 34 | + env: LIB_TYPE=static BUILD_TYPE=release |
| 35 | + #- LIB_TYPE=shared BUILD_TYPE=debug |
| 36 | + - os: linux |
| 37 | + dist: trusty |
| 38 | + compiler: clang |
| 39 | + env: LIB_TYPE=static BUILD_TYPE=release |
56 | 40 | notifications:
|
57 | 41 | email: false
|
58 |
| -dist: trusty |
59 | 42 | sudo: false
|
0 commit comments