-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
99 lines (85 loc) · 5.59 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
language: cpp
compiler:
- gcc
- clang
env:
matrix:
- LIBCXX=true BUILD_TYPE=Debug BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="master"
- LIBCXX=true BUILD_TYPE=Release BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="master"
- LIBCXX=false BUILD_TYPE=Debug BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="master"
- LIBCXX=false BUILD_TYPE=Release BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="master"
- LIBCXX=true BUILD_TYPE=Debug BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.58.0"
- LIBCXX=true BUILD_TYPE=Release BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.58.0"
- LIBCXX=false BUILD_TYPE=Debug BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.58.0"
- LIBCXX=false BUILD_TYPE=Release BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.58.0"
- LIBCXX=true BUILD_TYPE=Debug BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.57.0"
- LIBCXX=true BUILD_TYPE=Release BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.57.0"
- LIBCXX=false BUILD_TYPE=Debug BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.57.0"
- LIBCXX=false BUILD_TYPE=Release BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.57.0"
- LIBCXX=true BUILD_TYPE=Debug BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.56.0"
- LIBCXX=true BUILD_TYPE=Release BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.56.0"
- LIBCXX=false BUILD_TYPE=Debug BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.56.0"
- LIBCXX=false BUILD_TYPE=Release BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.56.0"
- LIBCXX=true BUILD_TYPE=Debug BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.55.0"
- LIBCXX=true BUILD_TYPE=Release BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.55.0"
- LIBCXX=false BUILD_TYPE=Debug BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.55.0"
- LIBCXX=false BUILD_TYPE=Release BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.55.0"
global:
- GCC_VERSION="4.9"
- BII_BOOST_VERBOSE="OFF"
- BII_BOOST_BUILD_J=4
matrix:
exclude:
- compiler: gcc
env: LIBCXX=true BUILD_TYPE=Debug BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="master"
- compiler: gcc
env: LIBCXX=true BUILD_TYPE=Release BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="master"
- compiler: gcc
env: LIBCXX=true BUILD_TYPE=Debug BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.58.0"
- compiler: gcc
env: LIBCXX=true BUILD_TYPE=Release BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.58.0"
- compiler: gcc
env: LIBCXX=true BUILD_TYPE=Debug BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.57.0"
- compiler: gcc
env: LIBCXX=true BUILD_TYPE=Release BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.57.0"
- compiler: gcc
env: LIBCXX=true BUILD_TYPE=Debug BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.56.0"
- compiler: gcc
env: LIBCXX=true BUILD_TYPE=Release BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.56.0"
- compiler: gcc
env: LIBCXX=true BUILD_TYPE=Debug BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.55.0"
- compiler: gcc
env: LIBCXX=true BUILD_TYPE=Release BII_BOOST_GLOBAL_USE_STATIC_LIBS="OFF" BII_BOOST_TRACK="1.55.0"
before_install:
- if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm; fi
- sudo apt-get update -qq
- if [ "$CXX" == "g++" ]; then sudo apt-get install -qq g++-${GCC_VERSION}; fi
- if [ "$CXX" == "g++" ]; then sudo apt-get install -qq gcc-${GCC_VERSION}; fi
- if [ "$CXX" == "g++" ]; then sudo ln -s -v -f $(which g++-${GCC_VERSION}) /usr/bin/g++; fi
- if [ "$CXX" == "g++" ]; then sudo ln -s -v -f $(which gcc-${GCC_VERSION}) /usr/bin/gcc; fi
- if [ "$LIBCXX" == "true" ]; then cwd=$(pwd); fi
- if [ "$LIBCXX" == "true" ]; then export CXXFLAGS="-std=c++0x -stdlib=libc++"; fi
- if [ "$LIBCXX" == "true" ]; then svn co --quiet http://llvm.org/svn/llvm-project/libcxx/trunk libcxx; fi
- if [ "$LIBCXX" == "true" ]; then cd libcxx/lib && bash buildit; fi
- if [ "$LIBCXX" == "true" ]; then sudo cp ./libc++.so.1.0 /usr/lib/; fi
- if [ "$LIBCXX" == "true" ]; then sudo mkdir /usr/include/c++/v1; fi
- if [ "$LIBCXX" == "true" ]; then cd .. && sudo cp -r include/* /usr/include/c++/v1/; fi
- if [ "$LIBCXX" == "true" ]; then cd /usr/lib && sudo ln -sf libc++.so.1.0 libc++.so; fi
- if [ "$LIBCXX" == "true" ]; then sudo ln -sf libc++.so.1.0 libc++.so.1 && cd $cwd; fi
- if [ "$LIBCXX" == "true" ]; then CXX_FLAGS="${CXX_FLAGS} -stdlib=libc++ -I/usr/include/c++/v1/"; fi
- if [ "$LIBCXX" == "true" ]; then CXX_LINKER_FLAGS="${CXX_LINKER_FLAGS} -stdlib=libc++ -L/usr/lib/ -lc++"; fi
- if [ "$LIBCXX" == "true" ]; then BII_BOOST_LIBCXX="ON"; else BII_BOOST_LIBCXX="OFF"; fi
- if [ "$CXX" == "clang++" ]; then export NO_CXX11_ALLOC="-DBOOST_NO_CXX11_ALLOCATOR=1"; fi
install:
- wget http://apt.biicode.com/install.sh && chmod +x install.sh && ./install.sh
- bii setup:cpp
- $CXX --version
- configure_params="-DCMAKE_CXX_COMPILER=$(which $CXX) -DBII_BOOST_BUILD_J=${BII_BOOST_BUILD_J} -DBII_BOOST_VERBOSE=${BII_BOOST_VERBOSE} -DBII_BOOST_GLOBAL_USE_STATIC_LIBS=${BII_BOOST_GLOBAL_USE_STATIC_LIBS} -DBII_BOOST_LIBCXX=${BII_BOOST_LIBCXX} -DCMAKE_CXX_FLAGS=\"${NO_CXX11_ALLOC} ${CXX_FLAGS}\" -DCMAKE_EXE_LINKER_FLAGS=\"${CXX_LINKER_FLAGS}\""
script:
- bii init
- ./bootstrap.sh $BII_BOOST_TRACK
- ./generate $BII_BOOST_TRACK --no-publish --ci-build
- bii find --update
- bii cpp:configure $configure_params || bii cpp:configure $configure_params
- bii cpp:build