-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (69 loc) · 2.28 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
# NOTE: The build lifecycle on Travis.ci is something like this:
# before_install
# install
# before_script
# script
# after_success or after_failure
# after_script
# OPTIONAL before_deploy
# OPTIONAL deploy
# OPTIONAL after_deploy
matrix:
allow_failures:
- os: osx
include:
- os: linux
dist: trusty # 14.04
sudo: required
language: c++
before_install: sudo apt-get update
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
- cmake
- python-dev
- python-numpy
- libeigen3-dev
- freeglut3-dev # OpenGL
- qt5-default
- qtbase5-dev
- libqt5opengl5
- libqt5opengl5-dev
before_script:
- 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://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
- sudo apt-get update
- sudo apt-get install ros-indigo-ros-base
- sudo rosdep init
- rosdep update
- source /opt/ros/indigo/setup.bash
- sudo apt-get install ros-indigo-opencv3 ros-indigo-eigen-conversions
script:
# Export CC and CXX to tell cmake which compiler to use
- export CC=/usr/bin/gcc-7
- export CXX=/usr/bin/g++-7
# Check versions of gcc, g++ and cmake
- gcc -v && g++ -v && cmake --version
- $CC --version
- $CXX --version
# Run your build commands next
- ./build.sh
- os: osx
osx_image: xcode7.3
sudo: required
language: objective-c
before_script:
# https://github.com/benlaug/labgen-p/blob/master/.travis.yml
- /usr/bin/yes | pip uninstall numpy
- brew update
- brew tap homebrew/science
- brew install opencv3
- brew ln opencv3 --force
- brew install qt5
- export PATH="/usr/local/opt/qt/bin:$PATH" >> ~/.bash_profile
script:
- ./build.sh