forked from CTPUG/wafer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (45 loc) · 1.69 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
language: python
sudo: false
dist: xenial
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
env:
- DJANGO='django>=1.11.0,<1.12.0' TESTDB=sqlite
- DJANGO='django>=1.11.0,<1.12.0' TESTDB=postgres
- DJANGO='django>=2.0,<2.1.0' TESTDB=sqlite
- DJANGO='django>=2.0,<2.1.0' TESTDB=postgres
- DJANGO='https://github.com/django/django/archive/master.tar.gz' TESTDB=sqlite
- DJANGO='https://github.com/django/django/archive/master.tar.gz' TESTDB=postgres
matrix:
exclude:
# Django 2.0 will drop python 2 support - https://www.djangoproject.com/weblog/2015/jun/25/roadmap/
- python: "2.7"
env: DJANGO='django>=2.0,<2.1.0' TESTDB=sqlite
- python: "2.7"
env: DJANGO='django>=2.0,<2.1.0' TESTDB=postgres
- python: "2.7"
env: DJANGO='https://github.com/django/django/archive/master.tar.gz' TESTDB=sqlite
- python: "2.7"
env: DJANGO='https://github.com/django/django/archive/master.tar.gz' TESTDB=postgres
allow_failures:
- env: DJANGO='django>=2.0,<2.1.0' TESTDB=sqlite
- env: DJANGO='django>=2.0,<2.1.0' TESTDB=postgres
- env: DJANGO='https://github.com/django/django/archive/master.tar.gz' TESTDB=postgres
- env: DJANGO='https://github.com/django/django/archive/master.tar.gz' TESTDB=sqlite
services:
- postgresql
cache:
directories:
- $HOME/.cache/pip
before_install:
- if [ "$TESTDB" = "postgres" ]; then pip install -q psycopg2 ; fi
# command to install dependencies,
install:
# Install the right version of Django first
- pip install "$DJANGO"
- pip install -r requirements.txt -r requirements-dev.txt
# command to run tests
script: NOSE_WITH_COVERAGE=1 NOSE_COVER_PACKAGE=wafer python manage.py test