forked from Autonomous-Racing-PG/ar-tu-do
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
93 lines (82 loc) · 3.21 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
os: linux
dist: bionic
language: c
env:
global:
- SRC_PATH=$(pwd)
- ROS_DISTRO: melodic
- GH_REPO_NAME: ar-tu-do
- DOXYFILE: $TRAVIS_BUILD_DIR/docs/master/Doxyfile
- GH_REPO_REF: github.com/arpg-sophisticated/ar-tu-do.git
- CUDA_SHORT: 10-2
jobs:
include:
- # build project
if: type = pull_request OR branch = development
addons:
apt:
packages:
- libeigen3-dev
- python-wstool
- libsdl2-dev
- clang-format-3.9
- libyaml-cpp0.5v5
- ca-certificates
cache:
apt: true
ccache: true
before_install:
- echo "Installing cuda"
- source /etc/lsb-release
- UBUNTU_VERSION=ubuntu${DISTRIB_RELEASE/./}
- wget https://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/cuda-${UBUNTU_VERSION}.pin
- sudo mv cuda-${UBUNTU_VERSION}.pin /etc/apt/preferences.d/cuda-repository-pin-600
- sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/7fa2af80.pub
- sudo add-apt-repository "deb http://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/ /"
- sudo apt update -qq
- sudo apt install -y cuda-${CUDA_SHORT}
- sudo apt clean
- VERSION_CUDA_S=$(echo ${CUDA_SHORT} | sed s/-/\./g)
- CUDA_HOME=/usr/local/cuda-${VERSION_CUDA_S}
- LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
- PATH=${CUDA_HOME}/bin:${PATH}
- echo "Installing ZED SDK"
- wget https://download.stereolabs.com/zedsdk/3.1/cu102/ubuntu18 -O zed_sdk.run
- chmod +x ./zed_sdk.run
- ./zed_sdk.run -- silent skip_tools
- cd ros_ws
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
- sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
- sudo apt-get update -qq
- sudo apt-get install -y "ros-${ROS_DISTRO}-ros-base" python-rosdep
- source /opt/ros/${ROS_DISTRO}/setup.bash
- sudo rosdep init
- rosdep update
before_script:
- wstool init
- wstool up
- source /opt/ros/${ROS_DISTRO}/setup.bash
- rosdep install -y --from-paths src --ignore-src --rosdistro ${ROS_DISTRO}
- sudo pip install autopep8
script:
- ./../scripts/travis/check-format.sh || travis_terminate 1
- source /opt/ros/${ROS_DISTRO}/setup.bash
- catkin_make
- catkin_make run_tests && catkin_test_results
- ./../scripts/travis/check-consistency.sh || travis_terminate 1
- # create documentation
if: type != pull_request AND branch = master
addons:
apt:
packages:
- doxygen
- doxygen-doc
- doxygen-latex
- doxygen-gui
- graphviz
cache:
ccache: true
script:
- cd $TRAVIS_BUILD_DIR
- chmod 755 ./scripts/travis/doxygen/generate-doxygen-doc.sh
- # ./scripts/travis/doxygen/generate-doxygen-doc.sh