forked from BehaviorTree/BehaviorTree.CPP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (32 loc) · 1.22 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
# 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
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