.travis.yml 4.96 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
12
13
env:
    global:
        # Always set Python version
        - MB_PYTHON_VERSION=3.7

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

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