-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.travis.yml
39 lines (32 loc) · 982 Bytes
/
.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
language: cpp
os:
- linux
- osx
dist:
- trusty
compiler:
- clang
- gcc
env:
global:
- BUILD_TYPE=Release
matrix:
exclude:
# Don't compile with gcc on MacOS
- os: osx
compiler: gcc
before_script:
- git clone https://github.com/themoos/core-moos.git core-moos
- cd core-moos
- mkdir moos-build
- cd moos-build
- cmake -DCMAKE_INSTALL_PREFIX=install_dir -DENABLE_EXPORT=ON -DUSE_ASYNC_COMMS=ON -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_SHARED_LIBS=ON -DUSE_CXX11_IF_AVAILABLE=ON ..
- cmake --build . --config Release -- -j3
- cmake --build . --config Release --target install
- cd ../..
- 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