forked from gpodder/mygpo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (34 loc) · 845 Bytes
/
.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
language: python
dist: xenial
python:
- "3.6"
- "3.7"
- "3.8"
- "3.8-dev"
- "nightly"
- "pypy3"
matrix:
allow_failures:
- python: 'pypy3'
- python: 'nightly'
services:
- redis-server
- postgresql
addons:
postgresql: "10"
install:
- pip install -r requirements.txt -r requirements-test.txt
- pip install coveralls
before_script:
- psql -c "ALTER USER travis WITH PASSWORD 'travis';"
- psql -c 'create database mygpo_test;' -U postgres
script:
- make check-code-format
- pytest --cov=mygpo/ --cov-branch
after_script:
- coveralls
env:
- DATABASE_URL="postgres://travis:travis@localhost/mygpo_test"
notifications:
slack:
secure: Fsaaj7TtFhd+/HghDCZ7vDxQKCSWoY4h6IC1jLKomOQNpfgaTtwfLJQ6VeR0kkXafR2nCIC6OC30sJ7w2yAoa6qCkRJuLxWLz0Vu8L7Y1YAAHn+AIit17kym3L1QMj+rZUUtCvcfudAmP/uakZlz3NfnwrKZhmfe/NowUalNl0k=