forked from City-of-Helsinki/linkedevents
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
43 lines (35 loc) · 955 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
language: python
python:
- '3.6'
- '3.7'
cache:
directories:
- $HOME/.cache/pip
env:
- DJANGO=Django>=1.9
sudo: false
addons:
postgresql: '10'
apt:
packages:
postgresql-10-postgis-2.5
postgresql-10-postgis-2.5-scripts
install:
- pip install --upgrade pip
- pip install codecov pytest-cov -r requirements.txt -r requirements-dev.txt
before_script:
- psql template1 -c 'create extension hstore;'
- psql template1 -c 'create extension postgis;'
script:
- flake8 events
- py.test --cov . events
- flake8 helevents
- py.test --cov . helevents
- flake8 extension_course
- py.test --cov . extension_course --ds=extension_course.tests.settings
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
notifications:
slack:
secure: Hxh7X9ckorBlD2MRiSh/TE6nC0kyEZrEmegx3FHQgwOm5tNCZcJUoJprmEXA82SMxlbl12XcNLhFZaeQd6Gt2AF5AvTjbJLsLZBRebbKA6We1dCSpyHSGXy+GGWRD0J1OYstk2jg5fWmsscusLZ0MFbybg8qwmsv7/LOG+QoX6M=
after_success: codecov