-
Notifications
You must be signed in to change notification settings - Fork 74
/
.travis.yml
50 lines (42 loc) · 1.37 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
sudo: false
language:
- cpp
compiler:
- clang
- g++
env:
- BUILD_SHARED_LIBS="ON" CMAKE_BUILD_TYPE="Release"
- BUILD_SHARED_LIBS="OFF" CMAKE_BUILD_TYPE="Release"
- BUILD_SHARED_LIBS="ON" CMAKE_BUILD_TYPE="Debug"
- BUILD_SHARED_LIBS="OFF" CMAKE_BUILD_TYPE="Debug"
install:
- mkdir -p ${HOME}/bin
- if [ "${CC}" = "gcc" ]; then export TOOLSET="gcc"; ln -s `which g++-4.8` ${HOME}/bin/g++;
ln -s `which gcc-4.8` ${HOME}/bin/gcc; fi
- if [ "${CC}" = "clang" ]; then export TOOLSET="clang"; ln -s `which clang-3.7` ${HOME}/bin/clang;
ln -s `which clang++-3.7` ${HOME}/bin/clang++; fi
- export PATH=${HOME}/bin:${PATH}
- "${CXX} --version"
before_script:
# update compilers
- if [ "${CXX}" == "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- if [ "${CXX}" == "clang++" ]; then export CXX="clang++-3.7" CC="clang-3.7"; fi
script:
- mkdir _builds
- cd _builds
# Note: clang not support libc++
- cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -DUri_DISABLE_LIBCXX=YES -DUri_BUILD_TESTS=ON -DUri_BUILD_DOCS=OFF ..
- make -j 8
- make test
after_failure:
- cat Testing/Temporary/LastTest.log
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
- kalakris-cmake
packages:
- g++-4.8
- clang-3.7
- cmake