-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (51 loc) · 1.72 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
## It seems that windows does not support `c++`, even though `cpp` works fine
language: cpp
## Platforms setup
matrix:
include:
- os: linux
env:
- TOOLSET_CXX=g++-8
- os: linux
env:
- TOOLSET_CXX=clang++-6.0
- os: windows
env:
- TOOLSET_CXX=cl.exe
- os: osx
env:
- TOOLSET_CXX=clang++
## Ubuntu 16.04
dist: xenial
## For some reason, default osx image is not working with homebrew
osx_image: xcode10.2
## Install step
install:
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
export CMAKE_ARGS="-A x64 -DCMAKE_BUILD_TYPE=Release";
export CMAKE_BUILD_ARGS="--config Release";
export CTEST_ARGS="-C Release";
git clone https://github.com/ccharly/clong.llvm-clang-8.0.0-win64-msvc-release-minimal.git llvm-clang-msvc;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -;
sudo apt-add-repository -y "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main";
sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test";
sudo apt update;
sudo apt autoremove;
sudo apt install llvm-dev libclang-dev g++-8 clang-6.0 -y;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
HOMEBREW_NO_AUTO_UPDATE=1 brew install llvm;
fi
## Build
script:
- mkdir build
- cd build
- cmake .. -DCMAKE_CXX_COMPILER=$TOOLSET_CXX -DIS_TRAVIS=ON $CMAKE_ARGS
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
cp _install/bin/gtest*.dll .;
fi
- cmake --build . $CMAKE_BUILD_ARGS
- cmake --build . --target tests $CMAKE_BUILD_ARGS
- ctest -VV . $CTEST_ARGS