forked from ArduPilot/apm_planner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
79 lines (69 loc) · 2.05 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
# APM Planner 2.0 Travis Build Spec
language: cpp
env:
global:
- CCACHE_CPP2=1
- CCACHE_DISABLE=1
- JOBS=4
# - QT_FATAL_WARNINGS=1
- SHADOW_BUILD_DIR=/tmp/shadow_build_dir
- SPEC=linux-g++-64 CONFIG=debug
- SUPPORT_FILES=http://firmware.ardupilot.org/Tools/APMPlanner/support_files
matrix:
fast_finish: true
include:
- os: linux
dist: trusty
env: SPEC=linux-g++-64 CONFIG=debug
sudo: required
- os: osx
osx_image: xcode9.2
env: SPEC=macx-clang CONFIG=debug
sudo: required
addons:
apt:
packages:
- ccache
- flite1-dev
# - libqt5svg5-dev
- libsdl2-dev
- libsdl1.2-dev
- libsndfile-dev
- libssl-dev
- libudev-dev
# - qt5-make
# - qt5-default
# - qtdeclarative5-qtquick2-plugin
- wget
- python-serial
- python-pexpect
install:
# linux dependencies: qt
- if [ "${SPEC}" = "linux-g++-64" ]; then
wget --quiet ${SUPPORT_FILES}/Qt5.9.3-gcc_64-min.tar.bz2 &&
tar jxf Qt5.9.3-gcc_64-min.tar.bz2 -C /tmp &&
export PATH=/tmp/Qt5.9-gcc_64/5.9.3/gcc_64/bin:$PATH &&
export DISPLAY=:99.0 &&
sh -e /etc/init.d/xvfb start
;
fi
# osx dependencies: qt
- if [ "${SPEC}" = "macx-clang" ]; then
wget --quiet ${SUPPORT_FILES}/Qt5.9.3-clang_64-min.tar.bz2 &&
tar jxf Qt5.9.3-clang_64-min.tar.bz2 -C /tmp
;
fi
- if [ "${SPEC}" = "macx-clang" ]; then
export QT_DIR=Qt5.9-clang_64/5.9.3/clang_64 &&
export QT_QPA_PLATFORM_PLUGIN_PATH=/tmp/$QT_DIR/plugins &&
export QML2_IMPORT_PATH=/tmp/$QT_DIR/qml &&
export PATH=/tmp/$QT_DIR/bin:$PATH
;
fi
script:
# run qmake
- mkdir ${SHADOW_BUILD_DIR} && cd ${SHADOW_BUILD_DIR}
- qmake -r ${TRAVIS_BUILD_DIR}/apm_planner.pro CONFIG+=${CONFIG} -spec ${SPEC}
# compile
- make -j$JOBS
#- ccache -s