-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
49 lines (49 loc) · 1.46 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: bionic
sudo: false
language: python
addons:
postgresql: "10"
apt:
packages:
- libxmlsec1
- libxmlsec1-dev
- libgdal-dev
- swig
- openjdk-8-jdk-headless
- postgresql-client-10
- postgresql-10-postgis-2.4
- postgis
cache: pip
- "$HOME/.cache/pip/"
- "$HOME/virtualenv/python2.7.15/lib/python2.7/site-packages"
python:
- 3.7
services:
- postgresql
- elasticsearch
env:
global:
- DJANGO_SETTINGS_MODULE='bluebottle.settings.testing'
before_install:
- "echo 'xpack.security.enabled: false' | sudo tee -a /etc/elasticsearch/elasticsearch.yml"
- sudo systemctl restart elasticsearch
- createdb test_bluebottle_test
- psql test_bluebottle_test < testdata.sql
- psql -c "CREATE USER testuser WITH PASSWORD 'password'"
- psql -c "ALTER ROLE testuser SUPERUSER"
install:
- pip install pip==20.2.1
- pip install setuptools
- pip install wheel==0.29.0
- pip install --upgrade -I flake8==5.0.4
- pip install -e .[test] --trusted-host github.com
before_script:
- flake8 .
script:
- python -m coverage run --parallel-mode --source=bluebottle manage.py test --keepdb
notifications:
slack:
secure: TOveMBh9HePYKWuGTrWF+hTXzxGZvbVsa3KU0sB1yv6qkcixb5/ggvmkTeRddYEd/zyWyMenicFsrXVBgsP0SmbNgke6kq5+EN0U5oJWse998lvCVCpwmJQMdwDHvYsOtbFEOppQrbRK4vmH8qibx3x2YVg+u+61ePHvWYF9z6U=
after_success:
- bash post_travis.sh
- python -m coverage combine; python -m coverage report --omit "**/migrations/**"; coveralls