forked from MagicStack/asyncpg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
239 lines (212 loc) · 9.22 KB
/
.travis.yml
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
language: generic
env:
global:
- PYMODULE=asyncpg
- RELEASE_PYTHON_VERSIONS="3.5 3.6 3.7 3.8"
- S3_UPLOAD_USERNAME=oss-ci-bot
- S3_UPLOAD_BUCKET=magicstack-oss-releases
# S3_UPLOAD_ACCESSKEY:
- secure: "iU37gukuyeaYM69StkR/aUTNgolblBdw2is034evvrm/SG0bKyzVVSrcK/dts9jolkCxJi+01VfpzxIBu2PF11QnCN1exUILb+XfmR+dVxUnNY2M1qqjILHvQ92rFJ9f2TlbYa2AlwgKynZlY4+edVSACSWwD/+TbWGAQEp0WInalA8ohljir+EPueXaYyC8mmH55cNQIa5WdDA2Vpg5ahRDdhVyD2J+/fLg78syLV7FGlnpXtASo9XiQKmRpPyHIT23yQB444kVh9xcjvuiB3aUBP5bGC2H4unElGYhCvfQvb1GoWvDqyvfzZvTOjlHqnG4AvIPoSCgEu/9cu8Cm/9OxWtqtWy7dECM8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K3VjGPxvBZKx8Mcf5nfVvfIyGn6b4atcrmwVdJsV1bBLdKoAjUX3RGjNGyAHpNYOEKOdNfeZs+Wziwg5NK7ucC5qybaBK3MOTEOInCzaO0QJpcxThaHBQkkDxVtn8Qu1Gk3S/hXcXWjT2UEYJvQ84diaXn/XYRxfzOYTZX8eUroAWOMnUCYxlPxGzXTAtmuQSiJkL7P7veZTsWsGCOHtCpdAx7dgGb113CD8QheeUoZlH9Ml6jd3fGFteYmuFp7cR6fa3VYVzxp5BFsdEJqSI4VqDvBOpUoLkbpRRKMjosHKtphfi0PAzbkJw6UdKcrqQ/Ca4nGmWk0PIf3LTsJrv44p4ZTPVI8b3lihXMm72QUE28e11yu9SIZRe0hMgmvWlivXEJw3C3YT1N5w+JM3Y5dIWp/YLoiRXVkIzNJQMN3YeWvKEFf/xO1AD2BO3jjU9oBZfKQpxCJ58gPsQrRt6qM3Y6zYuF8s4B+llpwM/ex2xnNwrTbNkp4ARyXyCujX+ixhjiBLtElfGoHPP1jOaIkJhGje9DxaptddfFBDLAdq0/3Q+LHOmwdQcH5+libUy3HnyP7jf51kjjWE3XEJGSchHI2ewEAn9UZRH8h0UNRXutBzUVvKgC6K1lUvqzEreKVxvrYe6zgbZc/DiUvLgIzJBiJgP9rdZYpDQ="
- DOCS_PUSH_KEY_LABEL=0760b951e99c
branches:
# Avoid building PR branches.
only:
- master
- ci
- releases
- /^v\d+(\.\d+)*$/
jobs:
fast_finish:
true
include:
# Do quick test runs for each supported version of PostgreSQL
# minus the latest.
- name: "Quicktest psql 9.5"
os: linux
dist: focal
language: python
python: "3.8"
env: BUILD=quicktests PGVERSION=9.5
addons:
apt:
sources:
- sourceline: 'deb https://apt.postgresql.org/pub/repos/apt/ focal-pgdg main'
key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
packages:
- postgresql-9.5
- postgresql-contrib-9.5
- name: "Quicktest psql 9.6"
os: linux
dist: focal
language: python
python: "3.8"
env: BUILD=quicktests PGVERSION=9.6
addons:
apt:
sources:
- sourceline: 'deb https://apt.postgresql.org/pub/repos/apt/ focal-pgdg main'
key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
packages:
- postgresql-9.6
- postgresql-contrib-9.6
- name: "Quicktest psql 10"
os: linux
dist: focal
language: python
python: "3.8"
env: BUILD=quicktests PGVERSION=10
addons:
apt:
sources:
- sourceline: 'deb https://apt.postgresql.org/pub/repos/apt/ focal-pgdg main'
key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
packages:
- postgresql-10
- name: "Quicktest psql 11"
os: linux
dist: focal
language: python
python: "3.8"
env: BUILD=quicktests PGVERSION=11
addons:
apt:
sources:
- sourceline: 'deb https://apt.postgresql.org/pub/repos/apt/ focal-pgdg main'
key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
packages:
- postgresql-11
# Do a full test run on the latest supported version of PostgreSQL
# on each supported version of Python.
- name: "Test py 3.5"
os: linux
dist: focal
language: python
python: "3.5"
env: BUILD=tests PGVERSION=12
addons:
apt:
sources:
- sourceline: 'deb https://apt.postgresql.org/pub/repos/apt/ focal-pgdg main'
key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
packages:
- postgresql-12
- name: "Test py 3.6"
os: linux
dist: focal
language: python
python: "3.6"
env: BUILD=tests PGVERSION=12
addons:
apt:
sources:
- sourceline: 'deb https://apt.postgresql.org/pub/repos/apt/ focal-pgdg main'
key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
packages:
- postgresql-12
- name: "Test py 3.7"
os: linux
dist: focal
language: python
python: "3.7"
env: BUILD=tests PGVERSION=12
addons:
apt:
sources:
- sourceline: 'deb https://apt.postgresql.org/pub/repos/apt/ focal-pgdg main'
key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
packages:
- postgresql-12
- name: "Test py 3.8"
os: linux
dist: focal
language: python
python: "3.8"
env: BUILD=tests PGVERSION=12
addons:
apt:
sources:
- sourceline: 'deb https://apt.postgresql.org/pub/repos/apt/ focal-pgdg main'
key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
packages:
- postgresql-12
# Only test on recent aarch64 distribution
# 3.7 is the latest supported by Travis
# https://docs.travis-ci.com/user/languages/python/#python-versions
# The shipped Postgres 9.X collides with the 12 on aarch64
# until fixed, use official ubuntu repos
- name: "Test aarch64 py 3.8-dev"
os: linux
arch: arm64
dist: focal
language: python
python: "3.8-dev"
env: BUILD=tests PGVERSION=12
addons:
postgresql: "12"
# Build manylinux wheels. Each wheel will be tested,
# so there is no need for BUILD=tests here.
# Also use this job to publish the releases and build
# the documentation.
- name: "x86 wheels and docs"
os: linux
dist: focal
language: python
python: "3.8"
env: BUILD=wheels,docs,release PGVERSION=12
services: [docker]
addons:
apt:
sources:
- sourceline: 'deb https://apt.postgresql.org/pub/repos/apt/ focal-pgdg main'
key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
packages:
- postgresql-12
# Same for the aarch64 manylinux wheel
- name: "aarch64 wheels"
os: linux
arch: arm64
dist: focal
language: python
python: "3.8-dev"
env: BUILD=wheels,release PGVERSION=12
services: [docker]
addons:
postgresql: "12"
- name: "OSX py 3.5"
os: osx
env: BUILD=tests,wheels PYTHON_VERSION=3.5.9 PGVERSION=12
- name: "OSX py 3.6"
os: osx
env: BUILD=tests,wheels PYTHON_VERSION=3.6.10 PGVERSION=12
- name: "OSX py 3.7"
os: osx
env: BUILD=tests,wheels PYTHON_VERSION=3.7.7 PGVERSION=12
- name: "OSX py 3.8"
os: osx
env: BUILD=tests,wheels PYTHON_VERSION=3.8.3 PGVERSION=12
cache:
pip
before_install:
- .ci/travis-before-install.sh
install:
- .ci/travis-install.sh
script:
- .ci/travis-tests.sh
- .ci/travis-build-docs.sh
- .ci/travis-build-wheels.sh
deploy:
- provider: script
script: .ci/travis-release.sh
on:
tags: true
condition: '"${BUILD}" == *release*'
- provider: script
script: .ci/travis-publish-docs.sh
on:
branch: master
condition: '"${BUILD}" == *docs*'