summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: b9fb3d70796ec733c33023b67b5fe138bb70082e (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
26
27
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

services:
  - xvfb
# 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