forked from richardbarran/django-envelope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (23 loc) · 990 Bytes
/
.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
dist: xenial
sudo: false
language: python
# Travis config is driven by the tox.ini file.
# Here we just specify:
# 1. The Python versions to run - it will start a CI server for each, and run all the tox environments
# that use that Python. So in Travis we are running both in parallel (one server per Python version)
# and in series (each server runs all the Django envs for that version of Python).
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
install:
- pip install tox-travis
- if [ "$TRAVIS_PYTHON_VERSION" = "3.6" ]; then pip install coveralls django -r test_project/requirements.txt; fi
script:
# Run against all the Python interpreter and Django versions specified in the tox.ini file.
- tox
# Coveralls only needs to run once - so run it against just one Python interpreter.
- if [ "$TRAVIS_PYTHON_VERSION" = "3.6" ]; then cd test_project && coverage run manage.py test; fi
after_success:
- if [ "$TRAVIS_PYTHON_VERSION" = "3.6" ]; then coveralls; fi