forked from richardbarran/django-photologue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (25 loc) · 1.12 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
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).
# 2. For *one* python version, we add an extra run of the unit tests - with coverage. The results are then fed to
# coveralls.
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
install:
- pip install tox-travis
- if [ "$TRAVIS_PYTHON_VERSION" = "3.6" ]; then pip install coveralls -r example_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 pip install django && cd example_project && coverage run manage.py test photologue; fi
after_success:
- if [ "$TRAVIS_PYTHON_VERSION" = "3.6" ]; then coveralls; fi