forked from BehaviorTree/BehaviorTree.CPP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (54 loc) · 1.64 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
# This config file for Travis CI utilizes ros-industrial/industrial_ci package.
# For more info for the package, see https://github.com/ros-industrial/industrial_ci/blob/master/README.rst
sudo: required
dist: xenial
language: cpp
os:
- linux
compiler:
- gcc
conan-linux: &conan-linux
os: linux
dist: xenial
language: python
python: "3.7"
services:
- docker
before_install:
- true
install:
- ./conan/travis/install.sh
script:
- ./conan/travis/build.sh
conan-osx: &conan-osx
os: osx
language: generic
before_install:
- true
install:
- ./conan/travis/install.sh
script:
- ./conan/travis/build.sh
matrix:
include:
- bare_linux:
env: ROS_DISTRO="none"
fast_finish: false
before_install:
- sudo apt-get update && sudo apt-get --reinstall install -qq build-essential
- if [ "$ROS_DISTRO" = "none" ]; then sudo apt-get --reinstall install -qq libzmq3-dev libdw-dev; fi
# GTest: see motivation here https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/
- sudo apt-get --reinstall install -qq libgtest-dev cmake
- cd /usr/src/gtest
- sudo cmake CMakeLists.txt
- sudo make
- sudo cp *.a /usr/lib
- cd $TRAVIS_BUILD_DIR
install:
- if [ "$ROS_DISTRO" != "none" ]; then git clone https://github.com/ros-industrial/industrial_ci.git .ci_config; fi
before_script:
# Prepare build directory
- mkdir -p build
script:
- if [ "$ROS_DISTRO" = "none" ]; then (cd build; cmake .. ; sudo cmake --build . --target install; ./bin/behaviortree_cpp_v3_test); fi
- if [ "$ROS_DISTRO" != "none" ]; then (.ci_config/travis.sh); fi