Skip to content

Commit cdf44ad

Browse files
committed
LP-40 Add OSX build to Travis
1 parent 2f1e7cd commit cdf44ad

1 file changed

Lines changed: 40 additions & 11 deletions

File tree

.travis.yml

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,50 @@ language: cpp
22

33
sudo: required
44

5-
dist: trusty
5+
matrix:
6+
include:
7+
# Linux builds
8+
- os: linux
9+
compiler: gcc
10+
dist: trusty
11+
before_install:
12+
- sudo add-apt-repository ppa:librepilot/tools -y
13+
- sudo apt-get update -q
14+
- sudo apt-get install -y libc6-i386 libudev-dev libusb-1.0-0-dev libsdl1.2-dev python libopenscenegraph-dev libosgearth-dev qt56-meta-minimal qt56svg qt56script qt56serialport qt56multimedia qt56translations qt56tools
15+
- make build_sdk_install
616

7-
before_install:
8-
- sudo add-apt-repository ppa:librepilot/tools -y
9-
- sudo apt-get update -q
10-
- sudo apt-get install -y libc6-i386 libudev-dev libusb-1.0-0-dev libsdl1.2-dev python libopenscenegraph-dev libosgearth-dev qt56-meta-minimal qt56svg qt56script qt56serialport qt56multimedia qt56translations qt56tools
11-
- make build_sdk_install
17+
# OSX build
18+
- os: osx
19+
compiler: clang
20+
before_install:
21+
- brew update
22+
- brew install curl
23+
- brew install p7zip
24+
- brew install gnu-tar
25+
# - brew install cmake
26+
- brew outdated gdal || brew upgrade gdal
27+
- brew outdated geos || brew upgrade geos
28+
- brew install ccache
29+
- export PATH="/usr/local/opt/ccache/libexec:$PATH"
30+
- ccache -V
31+
- brew install qt5
32+
- brew link --force qt5
33+
- make arm_sdk_install
34+
- make osg_install
35+
- make osgearth_install
36+
- wget https://www.libsdl.org/release/SDL-1.2.15.dmg
37+
- hdiutil attach SDL-1.2.15.dmg
38+
- sudo cp -r /Volumes/SDL/SDL.framework /Library/Frameworks/
39+
- hdiutil detach /Volumes/SDL
1240

1341
script:
14-
- make config_new CCACHE=ccache
15-
- make all_flight
16-
- make fw_resource
17-
- make gcs
18-
42+
- make config_new CCACHE=ccache
43+
- make -j2 all_flight
44+
- make -j2 fw_resource
45+
- make -j2 gcs
46+
1947
git:
2048
depth: 500
2149

2250
cache: ccache
51+

0 commit comments

Comments
 (0)