.travis.yml 5.11 KB
Newer Older
1
2
# Set TEST_BUILDS=1 to run library_builders tests

3
language: generic
4

xoviat's avatar
xoviat committed
5
6
7
cache:
  directories:
   - $HOME/.ccache
xoviat's avatar
xoviat committed
8

Matthew Brett's avatar
Matthew Brett committed
9
10
11
env:
    global:
        # Always set Python version
12
        - MB_PYTHON_VERSION=3.9
Matthew Brett's avatar
Matthew Brett committed
13

14
15
16
matrix:
  include:
    - os: linux
17
      dist: trusty
18
      language: python
19
20
    # 64-bit builds
    - os: linux
21
      dist: xenial
22
23
      env:
        - TEST_BUILDS=1
mattip's avatar
mattip committed
24
    # 64-bit builds
Matthew Brett's avatar
Matthew Brett committed
25
26
27
28
29
    - os: linux
      dist: xenial
      env:
        - TEST_BUILDS=1
        - MB_ML_VER=2010
30
        - DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
mattip's avatar
mattip committed
31
32
33
34
35
36
    - os: linux
      dist: xenial
      env:
        - TEST_BUILDS=1
        - MB_ML_VER=_2_24
        - DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
37
    # 32-bit builds
38
    - os: linux
39
      dist: xenial
40
41
      env:
        - TEST_BUILDS=1
42
        - PLAT=i686
43
44
45
46
47
48
    - os: linux
      dist: xenial
      env:
        - TEST_BUILDS=1
        - PLAT=i686
        - MB_ML_VER=2010
49
        - DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
50
    # Builds with caching
xoviat's avatar
xoviat committed
51
    - os: linux
52
      dist: xenial
xoviat's avatar
xoviat committed
53
54
55
      env:
        - TEST_BUILDS=1
        - USE_CCACHE=1
56
57
58
59
60
61
    # Build with pypy3
    - os: linux
      env:
        - MB_PYTHON_VERSION=pypy3.6-7.3
        - MB_ML_VER=2014
        - TEST_BUILDS=1
62
        - DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
63
    # OSX builds
64
65
    - os: osx
      env:
Matthew Brett's avatar
Matthew Brett committed
66
        - MB_PYTHON_VERSION=2.7.17 # 2.7.18 doesn't have a 10.6 build
67
        - MB_PYTHON_OSX_VER=10.6
68
        - TEST_BUILDS=1
69
70
        - OPENSSL_ROOT=openssl-1.0.2u
        - OPENSSL_HASH=ecd0c6ffb493dd06707d38b14bb4d8c2288bb7033735606569d8f90f89669d16
71
72
    - os: osx
      env:
73
        - MB_PYTHON_VERSION=2.7
74
        - TEST_BUILDS=1
75
    - os: osx
Andrew Murray's avatar
Andrew Murray committed
76
77
78
79
80
      env:
        - MB_PYTHON_VERSION=pypy3.6-7.3
        - MB_PYTHON_OSX_VER=10.9
        - TEST_BUILDS=1
    - os: osx
81
82
      language: objective-c
      env:
Matthew Brett's avatar
Matthew Brett committed
83
        - MB_PYTHON_VERSION=2.7
84
85
86
        - VENV=venv
    - os: osx
      env:
Matthew Brett's avatar
Matthew Brett committed
87
        - MB_PYTHON_VERSION=3.5
88
89
    - os: osx
      env:
Matthew Brett's avatar
Matthew Brett committed
90
        - MB_PYTHON_VERSION=3.5
91
        - VENV=venv
robbuckley's avatar
robbuckley committed
92
93
94
95
96
97
98
    # this is expected to fail
    # 3.5 / 10.9 build doesn't exist
    - os: osx
      env:
        - MB_PYTHON_VERSION=3.5
        - MB_PYTHON_OSX_VER=10.9
        - OSX_ENV_EXPECT_FAIL=true
Matthew Brett's avatar
Matthew Brett committed
99
100
    - os: osx
      env:
101
        - MB_PYTHON_VERSION=3.6
102
        - MB_PYTHON_OSX_VER=10.6
Matthew Brett's avatar
Matthew Brett committed
103
        - VENV=venv
104
105
    - os: osx
      env:
Matthew Brett's avatar
Matthew Brett committed
106
        - MB_PYTHON_VERSION=3.6
107
        - VENV=venv
xoviat's avatar
xoviat committed
108
109
    - os: osx
      env:
Matthew Brett's avatar
Matthew Brett committed
110
        - MB_PYTHON_VERSION=3.7
Matthew Brett's avatar
Matthew Brett committed
111
112
        - VENV=venv
    - os: osx
113
      osx_image: xcode10.2
Matthew Brett's avatar
Matthew Brett committed
114
      env:
Matthew Brett's avatar
Matthew Brett committed
115
        - MB_PYTHON_VERSION=3.7
xoviat's avatar
xoviat committed
116
117
        - VENV=venv
        - USE_CCACHE=1
mattip's avatar
mattip committed
118
119
    - os: osx
      env:
Matthew Brett's avatar
Matthew Brett committed
120
        - MB_PYTHON_VERSION=3.8
mattip's avatar
mattip committed
121
        - VENV=venv
Andrew Murray's avatar
Andrew Murray committed
122
123
124
125
    - os: osx
      env:
        - MB_PYTHON_VERSION=3.9
        - VENV=venv
Andrew Murray's avatar
Andrew Murray committed
126
127
    - os: osx
      env:
128
        - MB_PYTHON_VERSION=pypy-7.3
mattip's avatar
mattip committed
129
        - TEST_BUILDS=1
Andrew Murray's avatar
Andrew Murray committed
130
        - VENV=venv
Andrew Murray's avatar
Andrew Murray committed
131
    # Default OSX (xcode image) is 10.13 (xcode 9.4.1) as of 2018-08-03
Andrew Murray's avatar
Andrew Murray committed
132
    # See: https://docs.travis-ci.com/user/reference/osx/
133
134
135
    - os: osx
      osx_image: xcode10.1
      env:
Matthew Brett's avatar
Matthew Brett committed
136
        - MB_PYTHON_VERSION=3.7
137
        - TEST_BUILDS=1
138
139
140
    - os: osx
      osx_image: xcode10.1
      env:
Matthew Brett's avatar
Matthew Brett committed
141
        - MB_PYTHON_VERSION=3.7
142
        - MB_PYTHON_OSX_VER=10.9
143
        - TEST_BUILDS=1
144
145
146
    - os: osx
      osx_image: xcode10
      env:
Matthew Brett's avatar
Matthew Brett committed
147
        - MB_PYTHON_VERSION=3.7
mattip's avatar
mattip committed
148
149
150
    - os: osx
      osx_image: xcode10
      env:
Matthew Brett's avatar
Matthew Brett committed
151
        - MB_PYTHON_VERSION=3.8
Andrew Murray's avatar
Andrew Murray committed
152
153
154
155
    - os: osx
      osx_image: xcode10
      env:
        - MB_PYTHON_VERSION=3.9
Andrew Murray's avatar
Andrew Murray committed
156
157
158
    - os: osx
      osx_image: xcode10.1
      env:
Matthew Brett's avatar
Matthew Brett committed
159
        - MB_PYTHON_VERSION=3.5
Andrew Murray's avatar
Andrew Murray committed
160
161
162
    - os: osx
      osx_image: xcode10
      env:
Matthew Brett's avatar
Matthew Brett committed
163
        - MB_PYTHON_VERSION=3.5
Andrew Murray's avatar
Andrew Murray committed
164
165
166
    - os: osx
      osx_image: xcode9.4
      env:
Matthew Brett's avatar
Matthew Brett committed
167
        - MB_PYTHON_VERSION=3.5
Andrew Murray's avatar
Andrew Murray committed
168
169
170
    - os: osx
      osx_image: xcode9.3
      env:
Matthew Brett's avatar
Matthew Brett committed
171
        - MB_PYTHON_VERSION=3.5
Andrew Murray's avatar
Andrew Murray committed
172
173
174
    - os: osx
      osx_image: xcode9.2
      env:
Matthew Brett's avatar
Matthew Brett committed
175
        - MB_PYTHON_VERSION=3.5
Andrew Murray's avatar
Andrew Murray committed
176
177
178
    - os: osx
      osx_image: xcode9.1
      env:
Matthew Brett's avatar
Matthew Brett committed
179
        - MB_PYTHON_VERSION=3.5
Andrew Murray's avatar
Andrew Murray committed
180
181
182
    - os: osx
      osx_image: xcode9
      env:
Matthew Brett's avatar
Matthew Brett committed
183
        - MB_PYTHON_VERSION=3.5
Matthew Brett's avatar
Matthew Brett committed
184
185
186
    - os: osx
      osx_image: xcode8.3
      env:
Matthew Brett's avatar
Matthew Brett committed
187
        - MB_PYTHON_VERSION=3.5
Matthew Brett's avatar
Matthew Brett committed
188
189
190
    - os: osx
      osx_image: xcode8.2
      env:
Matthew Brett's avatar
Matthew Brett committed
191
        - MB_PYTHON_VERSION=3.5
Matthew Brett's avatar
Matthew Brett committed
192
193
194
    - os: osx
      osx_image: xcode8.1
      env:
Matthew Brett's avatar
Matthew Brett committed
195
        - MB_PYTHON_VERSION=3.5
Matthew Brett's avatar
Matthew Brett committed
196
197
198
    - os: osx
      osx_image: xcode8
      env:
Matthew Brett's avatar
Matthew Brett committed
199
        - MB_PYTHON_VERSION=3.5
Matthew Brett's avatar
Matthew Brett committed
200
201
202
    - os: osx
      osx_image: xcode7.3
      env:
Matthew Brett's avatar
Matthew Brett committed
203
        - MB_PYTHON_VERSION=3.5
204
205
206
207
208
    # ARM aarch 64 builds
    - os: linux
      arch: arm64
      env:
        - MB_PYTHON_VERSION=3.7
mattip's avatar
mattip committed
209
210
211
        - MB_ML_VER=2014
        - TEST_BUILDS=1
        - PLAT=aarch64
mattip's avatar
mattip committed
212
        - DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
213
214
215
216
217
    #  s390x builds
    - os: linux
      arch: s390x
      env:
        - MB_PYTHON_VERSION=3.7
mattip's avatar
mattip committed
218
        - MB_ML_VER=2014
219
220
        - TEST_BUILDS=1
        - PLAT=s390x
mattip's avatar
mattip committed
221
        - DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
222
223
224
225
226
    #  ppc64le builds
    - os: linux
      arch: ppc64le
      env:
        - MB_PYTHON_VERSION=3.7
mattip's avatar
mattip committed
227
        - MB_ML_VER=2014
228
229
        - TEST_BUILDS=1
        - PLAT=ppc64le
mattip's avatar
mattip committed
230
        - DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
231
232

script:
Ivan Pozdeev's avatar
Ivan Pozdeev committed
233
  - export ENV_VARS_PATH="tests/env_vars.sh"
234
  - source tests/test_multibuild.sh