blob: 6e1fb3128b9ea3cd8e42758a78ed1dc5aec82210 (
plain)
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
|
language: python
python:
- "3.5"
before_install:
- sudo apt-get update -qq
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
# command to install dependencies
install:
- pip install -r requirements.txt
# command to run tests and coverage
script:
- python manage.py makemigrations
- python manage.py migrate
- coverage erase
- coverage run -p manage.py test -v2
after_success:
- coverage combine
- coverage report
|