This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
/
.travis.yml
99 lines (86 loc) · 2.98 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
language: cpp
os:
- linux
- osx
sudo: required
dist: xenial
compiler:
- gcc
- clang
cache:
pip: true
directories:
- $HOME/opencv/
- $HOME/darknet/
matrix:
include:
- env: TO_TEST=WITH_ROS_AND_ICE
addons:
apt:
sources:
- sourceline: "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main"
key_url: "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x421C365BD9FF1F717815A3895523BAEEB01FA116"
- sourceline: "deb http://zeroc.com/download/Ice/3.6/ubuntu16.04 stable main"
key_url: "http://keyserver.ubuntu.com/pks/lookup?search=0x5E6DA83306132997&fingerprint=on&hash=on&op=get"
packages:
- rapidjson-dev
- libssl-dev
- libboost-dev
- libboost-filesystem-dev
- libboost-system-dev
- libboost-program-options-dev
- libgoogle-glog-dev
- libyaml-cpp-dev
- qt5-default
- libqt5svg5-dev
- libqt5opengl5-dev
- ros-kinetic-roscpp
- ros-kinetic-cv-bridge
- ros-kinetic-image-transport
- zeroc-ice-all-runtime
- zeroc-ice-all-dev
- doxygen
- doxygen-doc
- doxygen-latex
- doxygen-gui
- graphviz
homebrew:
update: true
brewfile: true
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/usr/local/opt/qt/bin:$PATH" ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget https://www.python.org/ftp/python/2.7.15/python-2.7.15-macosx10.6.pkg ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo installer -pkg python-2.7.15-macosx10.6.pkg -target / ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}" ; fi
- if [[ ( "$TRAVIS_OS_NAME" == "linux" ) && ( "$TO_TEST" == "WITH_ROS_AND_ICE" ) ]]; then source /opt/ros/kinetic/setup.bash ; fi
- sudo pip install numpy
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash -x install_opencv.sh ; fi
- ./install_darknet.sh
before_script:
- cd DetectionMetrics
- mkdir build
- cd build
- cmake ..
script: make -j2
after_success:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_wait bash ../package.sh ; fi # To run the script in the same shell so as to setup environment variables
- ls -lh out/* # Assuming you have some files in out/ that you would like to upload
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- travis_wait bash upload.sh out/*
- cd $TRAVIS_BUILD_DIR && rm -rf DetectionMetrics/build
- wget https://jderobot.org/resources/assets/jderobot.png
- doxygen
- echo "" > html/.nojekyll
deploy:
provider: pages
skip-cleanup: true
local_dir: $TRAVIS_BUILD_DIR/html
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
on:
branch: master
condition: ( "$TO_TEST" == "WITH_ROS_AND_ICE" ) # Publish only in the 4th job
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)$/
- gh-pages