forked from plone/guillotina
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
79 lines (75 loc) · 1.68 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
dist: xenial
language: python
sudo: required
matrix:
include:
- name: Python 3.7, Dummy DB
python: 3.7
env: DATABASE=DUMMY
- name: Python 3.7, PG 10
python: 3.7
env: DATABASE=postgres
addons:
postgresql: 10
- name: Python 3.7, PG 10 (db_schema=custom)
python: 3.7
env:
- DATABASE=postgres
- DB_SCHEMA=custom
addons:
postgresql: 10
- name: Python 3.7, Cockroachdb
python: 3.7
env: DATABASE=cockroachdb
- name: Python 3.8, Dummy DB
python: 3.8
env: DATABASE=DUMMY
- name: Python 3.8, PG 10
python: 3.8
env: DATABASE=postgres
addons:
postgresql: 10
- name: Python 3.8, PG 10 (db_schema=custom)
python: 3.8
env:
- DATABASE=postgres
- DB_SCHEMA=custom
addons:
postgresql: 10
- name: Python 3.8, Cockroachdb
python: 3.8
env: DATABASE=cockroachdb
services:
- postgresql
- docker
- redis-server
before_script:
- psql -c 'create database guillotina;' -U postgres
cache:
directories:
- eggs
install:
- pip install $(grep "Cython" requirements.txt)
- pip install -r requirements.txt
- pip install -r contrib-requirements.txt
- pip install -e .[test]
- pip install -e .[testdata]
script:
- flake8 guillotina --config=setup.cfg
- mypy guillotina/
- isort -c -rc guillotina/
- black --check --verbose guillotina
- pytest -rfE --reruns 2 --cov=guillotina -s --tb=native -v --cov-report term-missing --cov-append guillotina
after_success:
- codecov
deploy:
provider: script
script: bash docker_push
on:
tags: true
# safelist
branches:
only:
- master
- 4.x
- 5.x