forked from dj-stripe/dj-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (46 loc) · 1.85 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
# https://travis-ci.org/dj-stripe/dj-stripe/
dist: xenial
language: python
cache: pip
addons:
postgresql: "10"
matrix:
fast_finish: true
include:
# Don't test postgres_native_json, mysql & sqlite vs all python versions to reduce combinations
- { python: "3.6", env: TOXENV=py36-django22-postgres }
- { python: "3.6", env: TOXENV=py36-django30-postgres }
- { python: "3.7", env: TOXENV=py37-django22-postgres }
- { python: "3.7", env: TOXENV=py37-django22-postgres-nativejson }
- { python: "3.7", env: TOXENV=py37-django22-mysql }
- { python: "3.7", env: TOXENV=py37-django22-sqlite }
- { python: "3.7", env: TOXENV=py37-django30-postgres }
- { python: "3.7", env: TOXENV=py37-django30-postgres-nativejson }
- { python: "3.7", env: TOXENV=py37-django30-mysql }
- { python: "3.7", env: TOXENV=py37-django30-sqlite }
- { python: "3.7", env: TOXENV=py37-djangomaster-postgres }
- { python: "3.8", env: TOXENV=py38-django22-postgres }
- { python: "3.8", env: TOXENV=py38-django30-postgres }
- { python: "3.8", env: TOXENV=py38-django31-sqlite }
- { python: "3.8", env: TOXENV=py38-django31-sqlite-nativejson }
- { python: "3.8", env: TOXENV=py38-django31-mysql }
- { python: "3.8", env: TOXENV=py38-django31-mysql-nativejson }
- { python: "3.8", env: TOXENV=py38-django31-postgres-nativejson }
- { python: "3.7", env: TOXENV=checkmigrations }
- { python: "3.7", env: TOXENV=lint }
- { python: "3.7", env: TOXENV=docs }
allow_failures:
- env: TOXENV=py37-djangomaster-postgres
services:
- mysql
install:
- pip install --upgrade pip setuptools wheel
- pip install tox codecov
before_script:
- psql -U postgres -c 'CREATE DATABASE "djstripe";'
# load mysql timezones
- mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
script:
- tox
after_success:
- codecov