-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (52 loc) · 1.73 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
language: python
python: '3.9'
cache:
directories:
- "$HOME/.cache/pip"
services:
- docker
install: make dev.install
stages:
- check
- test
- deploy
jobs:
fast_finish: true
include:
- name: flake8
stage: check
script: make check.flake8
- name: mypy
stage: check
script: make check.mypy
- name: pylint
stage: check
script: make check.pylint
- name: unit test
stage: test
install:
- make dev.install
- make docker.start-db
script: make test.unit PYTEST_OPTS="-v --cov --cov-report xml"
after_success:
- make docker.stop-db
- pip install codecov
- codecov
after_failure:
- make docker.stop-db
- name: deploy
stage: deploy
if: type = push AND branch IN (master, production)
install: skip
script: true
deploy:
provider: heroku
api_key:
master:
secure: o8JdZ/fl/M9KTt7bIOj7d+gJTo171tktIb/UKzfWqR0/38QVIhiaGiqiWtlTaaJKLQUpO5PV45ozfoREptTw7dHPGC/LcLTsLYiBrjey8eZzpnNLK93/nV5w70gumA2dZtqBKb0tYbJQC/j468OFAsQq6bPg3aIpZJlUg5lyVKsfcS2O47UOj83MR/WQiky5V8UQEBcwot0PslsTT71nIEnGnrPQPsspP6Z/EVIp198xvYk7cVYchtNDFIzbYRzsLWd6tUhGYLRV4ZalP/c2IfJ1mkh1UlCR+rirfLc+vnsUKFTRTjxdZwi5dC1Iem9qxjrzX+ycaDAIjmX082caeEjb0oe1uel1LWsibzBDBNFEThyrugUUQx9kpVaSAoDhfgiyzoFANZY977eeCZX0zhnneh0uXx2mqnQ+L1ra/V1zJymSMD+/OIEt1PSIyGaQbuqgr5ScTLqERW8Cn72SjkgEHZjnRgMSY43/ybeOPMPlh1Jo4mL86MZ2Lk8s8IxXbouiKvuaxFP0N8qH35XUJfRoNXQwHSp3oOAfiXmSM2gqz0+MdYw5nJwDcF30FI1Onvm6B9RAQbzd1FMmhkJo4wcG82bWWlRnh9PTigDizZpn1uZzf0F7uaTWIRnsAS1Nc5otKt1yOkKufC21kYxyB0Pd6nquQ4WOOo9VgzyxXKA=
app:
master: fzw-backend
notifications:
email:
on_success: never
on_failure: always