forked from d120/pyophase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (44 loc) · 1.18 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
47
48
49
50
51
52
53
54
language: python
sudo: false
cache:
pip: true
directories:
- $HOME/.m2
- $HOME/.cache/bower
- $HOME/.npm
addons:
code_climate:
repo_token: 5eba139571641c629d395a5f9bec56f9cbc655ce23579c6febdede10c490c6ce
python:
- "3.4"
- "3.5"
env:
# the Django version from requirements.txt is used
- $DENV=""
# the latest Django development version is used
- $DENV="pip install --upgrade --pre Django"
# allow the Django pre version to fail without failing the entire build
matrix:
allow_failures:
- env: $DENV="pip install --upgrade --pre Django"
install:
- pip install -U pip wheel
- pip install -r requirements.txt
- $DENV
- django-admin --version
- pip install coveralls
- npm install -g bower
- bower install
before_script:
# @see https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
# command to run tests
script:
- export PYTHONWARNINGS=all
- python manage.py check
- python manage.py test
- coverage run --omit="*/migrations*" --source="." manage.py test
after_success:
coveralls