forked from auto-mat/klub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 860 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
sudo: false
language: python
services:
- redis-server
env:
global:
- DATABASE_NAME="travis_ci"
- DATABASE_USER="postgres"
- DJANGO_SETTINGS_MODULE="project.settings.test"
- SECRET_KEY="sadfjasasdfasdfsadfsadfsadfeq"
python:
- "3.8"
before_install:
- sudo apt-get install -y python-gdal
install:
- pip3 install -r requirements.txt
- python --version
before_script:
- npm install -g bower
- black --check --exclude migrations apps
- black --check project
- python manage.py bower install
- python manage.py collectstatic -v0 --noinput
- cd apps/aklub/
- DJANGO_SETTINGS_MODULE="" django-admin compilemessages
- cd ../..
script:
- python manage.py --version
- pytest --cov=apps apps
- coverage run -a --source='.' manage.py test --noinput
- coverage html
after_script:
- coveralls
addons:
postgresql: "9.6"