summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 116acbe91ea37f5ac6f0520b15584a1dbbb2d722 (plain) (blame)
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
matrix:
  include:
    - env: SUBSURFACE_PLATFORM='ios'
      os: osx
      osx_image: xcode9.3
      language: c++

    - env: SUBSURFACE_PLATFORM='mac'
      os: osx
      osx_image: xcode9.2
      language: c++
      addons:
        homebrew:
          packages:
            - xz
            - hidapi
            - libusb
            - libxml2
            - libxslt
            - libzip
            - openssl
            - pkg-config
            - libgit2
            - libssh2
          update: true

    - env: SUBSURFACE_PLATFORM='windows-container'
      os: linux
      filter_secrets: false
      language: c++
      services:
          - docker

    - env: SUBSURFACE_PLATFORM='linux'
      os: linux
      dist: trusty
      language: c++
      addons:
        apt:
          packages:
            - git
            - g++
            - make
            - autoconf
            - automake
            - libtool
            - cmake
            - pkg-config
            - libxml2-dev
            - libxslt1-dev
            - libzip-dev
            - libsqlite3-dev
            - libusb-1.0-0-dev
            - libssl-dev
            - libssh2-1-dev
            - libcurl4-openssl-dev
            # Not a subsurface dependency, but a Qt dependency
            - mesa-common-dev
            - libqt5gui5
            - libxcb-xinerama0
            # Not a subsurface dependency, but a QtMultimedia/libdeclarative_multimedia.so dependency
            - libpulse-mainloop-glib0
            # Not a subsurface dependency, but a QtWebKit dependency
            - libhyphen-dev
            - libicu52
            # For SmartTrak import
            - libglib2.0-dev
            - mdbtools-dev

    - env: SUBSURFACE_PLATFORM='linux2'
      os: linux
      dist: trusty
      language: c++
      addons:
        apt:
          sources:
            - sourceline: 'ppa:beineri/opt-qt-5.10.1-trusty'
              key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x10C56D0DE9977759'
            - ubuntu-toolchain-r-test
          packages:
            - qt510base
            - qt510connectivity
            - qt510declarative
            - qt510location
            - qt510quickcontrols
            - qt510quickcontrols2
            - qt510script
            - qt510translations
            - qt510svg
            - qt510tools
            - git
            - gcc-5
            - g++-5
            - make
            - autoconf
            - automake
            - libtool
            - cmake
            - pkg-config
            - libxml2-dev
            - libxslt1-dev
            - libzip-dev
            - libsqlite3-dev
            - libusb-1.0-0-dev
            - libssl-dev
            - libssh2-1-dev
            - libcurl4-openssl-dev
            # Not a subsurface dependency, but a Qt dependency
            - mesa-common-dev
            - libxcb-xinerama0

    - env: SUBSURFACE_PLATFORM="android"
      # Currently hard coded to arm
      os: linux
      language: c++
      filter_secrets: false
      services:
          - docker
# TODO: caching
#      cache:
#          timeout: 300
#          directories:
#              - 3pp

    - env: SUBSURFACE_PLATFORM="qt55"
      os: linux
      language: c++
      filter_secrets: false
      services:
          - docker

#    - env: SUBSURFACE_PLATFORM="qt56"
#      os: linux
#      language: c++
#      filter_secrets: false
#      services:
#          - docker

    - env: SUBSURFACE_PLATFORM="qt57"
      os: linux
      language: c++
      filter_secrets: false
      services:
          - docker

    - env: SUBSURFACE_PLATFORM="qt59"
      os: linux
      language: c++
      filter_secrets: false
      services:
          - docker

before_install:
    - source ${TRAVIS_BUILD_DIR}/scripts/${SUBSURFACE_PLATFORM}/before_install.sh

script:
    - source ${TRAVIS_BUILD_DIR}/scripts/${SUBSURFACE_PLATFORM}/travisbuild.sh

after_success:
    - source ${TRAVIS_BUILD_DIR}/scripts/${SUBSURFACE_PLATFORM}/after_success.sh

branches:
  only:
    - master
    - /^v\d+\.\d+(\.\d+)?$/