7
7
# to allow C++11, though we are not yet building with -std=c++11
8
8
9
9
install :
10
+ - if [[ $TRAVIS_OS_NAME == osx ]]; then
11
+ brew update;
12
+ brew install python3 ninja;
13
+ python3 -m venv venv;
14
+ source venv/bin/activate;
15
+ elif [[ $TRAVIS_OS_NAME == linux ]]; then
16
+ wget https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-linux.zip;
17
+ unzip -q ninja-linux.zip -d build;
18
+ fi
19
+ - pip3 install meson
10
20
# /usr/bin/gcc is 4.6 always, but gcc-X.Y is available.
11
- - if [ " $CXX" = " g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
21
+ - if [[ $CXX = g++ ] ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
12
22
# /usr/bin/clang has a conflict with gcc, so use clang-X.Y.
13
- - if [ " $CXX" = " clang++" ]; then export CXX="clang++-3.5" CC="clang-3.5"; fi
23
+ - if [[ $CXX = clang++ ] ]; then export CXX="clang++-3.5" CC="clang-3.5"; fi
14
24
- echo ${PATH}
15
25
- ls /usr/local
16
26
- ls /usr/local/bin
17
- - export PATH=/usr/local/bin:/usr/bin:${PATH}
27
+ - export PATH="${PWD}"/build: /usr/local/bin:/usr/bin:${PATH}
18
28
- echo ${CXX}
19
29
- ${CXX} --version
20
30
- which valgrind
@@ -23,10 +33,7 @@ addons:
23
33
sources :
24
34
- ubuntu-toolchain-r-test
25
35
- llvm-toolchain-precise-3.5
26
- - george-edison55-precise-backports # cmake 3.2.3
27
36
packages :
28
- - cmake
29
- - cmake-data
30
37
- gcc-4.9
31
38
- g++-4.9
32
39
- clang-3.5
@@ -40,8 +47,9 @@ compiler:
40
47
script : ./travis.sh
41
48
env :
42
49
matrix :
43
- - SHARED_LIB=ON STATIC_LIB=ON CMAKE_PKG=ON BUILD_TYPE=release VERBOSE_MAKE=false
44
- - SHARED_LIB=OFF STATIC_LIB=ON CMAKE_PKG=OFF BUILD_TYPE=debug VERBOSE_MAKE=true VERBOSE
50
+ - LIB_TYPE=static BUILD_TYPE=release
51
+ - LIB_TYPE=shared BUILD_TYPE=debug
45
52
notifications :
46
53
email : false
54
+ dist : trusty
47
55
sudo : false
0 commit comments