-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
49 lines (39 loc) · 1.55 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
dist: xenial
language: python
python:
- "3.6"
- "3.7"
- "nightly"
matrix:
allow_failures:
- python: "nightly"
- python: "3.7"
cache: pip
services:
- postgresql
addons:
postgresql: "10"
apt:
packages:
- postgresql-10-postgis-2.5
- postgresql-10-postgis-2.5-scripts
install:
- pip install -r requirements.txt -r requirements-dev.txt
before_script:
- psql -U postgres template1 -c 'create extension postgis;'
- psql -U postgres -c 'create database ltj;'
- ./manage.py compilemessages
env:
global:
- DEBUG=True
- SECRET_KEY="t*CRj!:?{O!C~SsIix5w?Vc%ki[VODDp5vjim97)XQMJY\+d8Gud%qTY/$B>taz"
- SHARED_SECRET="con4yAYDMkXxXf5gf2nOlpmmwJ1ctfRlq8CYxMiEqBgF1zuuP0q3r9M8416GQlKK"
script:
- flake8
- black --check .
- pytest -ra -vvv --cov
after_success:
- curl -s https://codecov.io/bash | bash
notifications:
slack:
secure: lQfpcpPpq0Y5U1J8Tc5UDmSLsZc75ITT6i9E854SP8T0ph2mUxxu5qki/x43K6BjOEvd/kFhepl8appUnI8Lo6Bq0V8GJcGbBjEnEUZ1dqHWyFKXvRV5LhrdqrNJICoMBolW7T5+7/dpWaCvUr5yVeWe3GX7OBO0XlRmiFgqbKFPYlV4k2480JGG4vDdfmuKZ1JPQ9ROqG0A0bD1cBG7m2F0idR6Z8bWWFrulOPNbqrvCxWctjpXmFTCcBhfjbsaH0uQMkvpJeKCpd1gWNAc+08n1Pg9Y33MYG4lT3c0LTttbJnbNkaNdQHybM4qIn8tX2mJrSPgu4ATE6DGhI+3vfOwWqtnxIHs0JNi8/Cf2WwP3fC6IsFEhy68eRrPJ9zjmDWmU0U9W1qXtiTFgUnO5T6D3UWyTLevLT6X1Bky8+sXsGxqKlyYIivpd+HYd+TEEzC8m2PpHP9hL5JtSckjbcCpb79Yyyh8FGzYoNC3AdB0n6VbRThB//+hSGm0AENH2spUGlJfAFv+uQy3GuU7qJs8fDratMc/G2Y2oOh1qZonKtyokTnEGaJOXSE8wk8ZrB+tgPJSMAmjubYQ4/zIqwI4zn8MyNasbldeAcqY+/bJ/97yFuDtHvYKY+HaydGseLDkmhM6BxnXpoj2cZRdVYYAcGpXOG6v41NBZDYPV8Q=