-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
83 lines (75 loc) · 2.01 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
language: python
dist: xenial
python:
- 3.7
- 3.6
- 3.5
- 2.7
env:
matrix:
- TOXENV='pep8'
- TOXENV='isort'
- TOXENV='docs'
- DJANGO='django22' CMS='cms37'
- DJANGO='django21' CMS='cms37'
- DJANGO='django21' CMS='cms36'
- DJANGO='django21' CMS='cms35'
- DJANGO='django111' CMS='cms37'
- DJANGO='django111' CMS='cms36'
- DJANGO='django111' CMS='cms35'
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then export PYVER=py27; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then export PYVER=py35; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then export PYVER=py36; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then export PYVER=py37; fi"
- "if [[ ${DJANGO}z != 'z' ]]; then export TOXENV=$PYVER-$DJANGO-$CMS; fi"
# command to run tests, e.g. python setup.py test
script: COMMAND='coverage run' tox -e$TOXENV -- --verbose=2
before_install:
- pip install -U setuptools tox>=1.8 coveralls codecov wheel pip
after_success:
- codecov
- coveralls
matrix:
exclude:
- python: 2.7
env: DJANGO='django22' CMS='cms37'
- python: 2.7
env: DJANGO='django21' CMS='cms37'
- python: 2.7
env: DJANGO='django21' CMS='cms36'
- python: 2.7
env: DJANGO='django21' CMS='cms35'
- python: 2.7
env: DJANGO='django20' CMS='cms37'
- python: 2.7
env: DJANGO='django20' CMS='cms36'
- python: 2.7
env: DJANGO='django20' CMS='cms35'
- python: 2.7
env: TOXENV='docs'
- python: 2.7
env: TOXENV='pep8'
- python: 2.7
env: TOXENV='isort'
- python: 3.5
env: TOXENV='docs'
- python: 3.5
env: TOXENV='pep8'
- python: 3.5
env: TOXENV='isort'
- python: 3.7
env: TOXENV='docs'
- python: 3.7
env: TOXENV='pep8'
- python: 3.7
env: TOXENV='isort'
allow_failures:
- python: 3.5
env: DJANGO='django22' CMS='cms37'
- python: 3.6
env: DJANGO='django22' CMS='cms37'
- python: 3.7
env: DJANGO='django22' CMS='cms37'
cache: pip