-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
46 lines (46 loc) · 1.15 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
dist: jammy
sudo: false
language: python
env:
global:
- DATABASE_NAME="travis_ci"
- DATABASE_USER="postgres"
- DJANGO_SETTINGS_MODULE="project.settings.test"
- SECRET_KEY="sadfjasasdfasdfsadfsadfsadfeq"
- PGUSER=postgres
python:
- "3.9"
before_install:
- sudo apt-get install -y python3-gdal
- python3 -m pip install setuptools==65.5.1
install:
- pip3 install -r requirements.txt
- python --version
before_script:
- psql --version
- sudo service postgresql start
- psql -c "CREATE EXTENSION postgis"
- redis-server --version
- sudo service redis-server start
- 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:
apt:
packages:
- postgresql-14
- postgresql-client-14
- postgresql-14-postgis-3
- redis-server