forked from onepercentclub/bluebottle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (45 loc) · 1.45 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
dist: xenial
sudo: false
language: python
addons:
postgresql: "10"
apt:
packages:
- libxmlsec1
- libxmlsec1-dev
- libgdal-dev
- swig
- openjdk-8-jdk-headless
- postgresql-client-10
cache: pip
- "$HOME/.cache/pip/"
- "$HOME/virtualenv/python2.7.15/lib/python2.7/site-packages"
python:
- 3.7
services:
- elasticsearch
- postgresql
env:
global:
- DJANGO_SETTINGS_MODULE='bluebottle.settings.testing'
before_install:
- curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.6.0.deb && sudo dpkg -i --force-confnew elasticsearch-6.6.0.deb && sudo service elasticsearch restart
- 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.0.2
- pip install --upgrade wheel setuptools mercurial
- pip install --upgrade -I flake8==2.6.2
- 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