-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
45 lines (39 loc) · 1.04 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
# We do not use sudo
sudo: false
# Python versions for matrix
language: python
python:
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
# Django versions for matrix
env:
- DJANGO_VERSION='>=1.8,<1.9'
- DJANGO_VERSION='>=1.9,<1.10'
- DJANGO_VERSION='>=1.10,<1.11'
# Command to install dependencies, e.g. pip install -r requirements.txt
install:
- pip install Django$DJANGO_VERSION
# Coverage 4.0 no longer supports py32. Install an older version before
# coveralls tries to install the latest
- if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then travis_retry pip install 'coverage<4.0'; fi
- pip install coveralls
# Command to run tests, e.g. python setup.py test
script:
- coverage run --source=bootstrap4 manage.py test
matrix:
exclude:
- python: "3.2"
env: DJANGO_VERSION='>=1.9,<1.10'
- python: "3.2"
env: DJANGO_VERSION='>=1.10,<1.11'
- python: "3.3"
env: DJANGO_VERSION='>=1.9,<1.10'
- python: "3.3"
env: DJANGO_VERSION='>=1.10,<1.11'
# Report to coveralls
after_success:
- coveralls