forked from themoos/core-moos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (41 loc) · 1.03 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
language: cpp
os:
- linux
- osx
dist:
- trusty
compiler:
- clang
- gcc
git:
depth: 3
env:
global:
- BUILD_SHARED_LIBS=OFF
- BUILD_TYPE=Release
matrix:
- USE_CXX11_IF_AVAILABLE=OFF
- USE_CXX11_IF_AVAILABLE=ON
matrix:
exclude:
# Don't compile with gcc on MacOS
- os: osx
compiler: gcc
include:
# Make sure that things still work OK by default on a non c++11 compiler
- os: linux
dist: precise
env: DIST=precise # Just to provide a useful label in travis web view
# Check that a shared libs build works
- os: linux
dist: trusty
env: BUILD_SHARED_LIBS=ON
before_install:
- .travis/install_packages.sh
before_script:
- mkdir build/
script:
- cd build/
- cmake -DCMAKE_INSTALL_PREFIX=install_dir -DENABLE_EXPORT=ON -DUSE_ASYNC_COMMS=ON -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -DUSE_CXX11_IF_AVAILABLE=$USE_CXX11_IF_AVAILABLE ..
- cmake --build . --config Release -- -j3
- cmake --build . --config Release --target install