forked from hku-ect/gazebosc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
107 lines (90 loc) · 2.33 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
100
101
102
103
104
105
106
107
# Travis CI script
language:
- c
cache:
- ccache
osx_image: xcode11
dist:
- xenial
env:
global:
- SPHACTOR_SOCKET_LIMIT=20
- CI_TIME=false
- CI_TRACE=false
- CI_CONFIG_QUIET=true
- CI_REQUIRE_GOOD_GITIGNORE=false
- CI_REQUIRE_GOOD_CLANG_FORMAT=false
- CI_TEST_DISTCHECK=true
addons:
apt:
packages: &base_deps
- git
- mesa-common-dev
- libasound2-dev
- libglew-dev
- libunwind-dev
# homebrew: &base_deps
# packages:
# - binutils
# - valgrind
matrix:
include:
- env: BUILD_TYPE=cmake
os: osx
addons:
- env: BUILD_TYPE=clang
os: osx
compiler: clang
- env: BUILD_TYPE=default
os: linux
- env: BUILD_TYPE=valgrind
os: linux
addons:
apt:
packages:
- *base_deps
- valgrind
- env: BUILD_TYPE=default ADDRESS_SANITIZER=enabled
os: linux
before_install:
- if [ -n "${MATRIX_EVAL}" ] ; then eval ${MATRIX_EVAL} ; fi
install:
- git submodule update --init --recursive
# libzmq
- git clone --depth=1 --branch=master https://github.com/zeromq/libzmq
- cd libzmq
- ./autogen.sh
- ./configure
- sudo make install
- cd -
# python
- export BUILD_DIR=$TRAVIS_BUILD_DIR/build
- mkdir $BUILD_DIR
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$TRAVIS_PULL_REQUEST" != "false" ] ; then
./dist/osx/build_python.sh $BUILD_DIR/python ;
fi
script:
############################################################################
# Build main and tests
############################################################################
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$TRAVIS_PULL_REQUEST" == "false" ];
then export CMAKE_OPTIONS="-DPython3_ROOT_DIR=$BUILD_DIR/python -DWITH_EMBED_PYTHON=ON";
fi
- mkdir -p build
- cd build
- cmake ${CMAKE_OPTIONS} -DCMAKE_CXX_FLAGS=${CXX_FLAGS} -DCMAKE_BUILD_TYPE=Coverage ..
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then make install; else make; fi
# test
# Skip for now!
# - mv ../test.txt ./bin/test.txt
# - cd bin
# - if [ "$BUILD_TYPE" == "valgrind" ] ; then valgrind --leak-check=yes ./gazebosc -test ; fi
# - if [ "$BUILD_TYPE" != "valgrind" ] ; then ./gazebosc -test ; fi
git:
depth: 100
after_success:
#- cd build
# fixes the osx bundle
#- if [ "$TRAVIS_OS_NAME" == "osx" ] ; then make install ; fi
deploy:
# TODO