source: subsurface/.travis.yml

Last change on this file was 063aadd, checked in by Dirk Hohndel <dirk@…>, 4 days ago

android: Add android build on travis-ci

This adds a android-apk-build which runs on travis-ci. This is using a
quite ugly trick, building in a docker container, basically just to get
a newer cmake. The cmake in trusty is way to old to work with android
builds.

A good side-effect is that this is a complete copy-paste for anyone who
would like to build android-binaries them self on Linux. All the
uglyness is hidden away in a docker container.

Signed-off-by: Anton Lundin <glance@…>

  • Property mode set to 100644
File size: 1.8 KB
Line 
1
2
3matrix:
4  include:
5    - env: SUBSURFACE_PLATFORM='mac'
6      os: osx
7      osx_image: xcode6.4
8      language: c++ ruby
9
10    - env: SUBSURFACE_PLATFORM='windows'
11      os: linux
12      dist: trusty
13      sudo: required
14      language: c++
15
16    - env: SUBSURFACE_PLATFORM='linux'
17      os: linux
18      dist: trusty
19      sudo: required
20      language: c++
21      addons:
22        apt:
23          packages:
24            - git
25            - g++
26            - make
27            - autoconf
28            - automake
29            - libtool
30            - cmake
31            - pkg-config
32            - libxml2-dev
33            - libxslt1-dev
34            - libzip-dev
35            - libsqlite3-dev
36            - libusb-1.0-0-dev
37            - libssl-dev
38            - libssh2-1-dev
39            - libcurl4-openssl-dev
40            # Not a subsurface dependency, but a Qt dependency
41            - mesa-common-dev
42            - libqt5gui5
43            - libxcb-xinerama0
44            # Not a subsurface dependency, but a QtMultimedia/libdeclarative_multimedia.so dependency
45            - libpulse-mainloop-glib0
46            # Not a subsurface dependency, but a QtWebKit dependency
47            - libhyphen-dev
48            - libicu52
49
50    - env: SUBSURFACE_PLATFORM="android"
51      # Currently hard coded to arm
52      os: linux
53      language: c++
54      services:
55          - docker
56# TODO: caching
57#      cache:
58#          timeout: 300
59#          directories:
60#              - 3pp
61
62before_install:
63    - source ${TRAVIS_BUILD_DIR}/scripts/${SUBSURFACE_PLATFORM}/before_install.sh
64
65script:
66    - source ${TRAVIS_BUILD_DIR}/scripts/${SUBSURFACE_PLATFORM}/travisbuild.sh
67
68after_success:
69    - source ${TRAVIS_BUILD_DIR}/scripts/${SUBSURFACE_PLATFORM}/after_success.sh
70
71branches:
72  except:
73    - # Do not build tags that we create when we upload to GitHub Releases
74    - /^(?i:continuous)/
Note: See TracBrowser for help on using the repository browser.