Skip to content

Commit c042973

Browse files
authored
adapted test matrix (#57)
1 parent ae23cfb commit c042973

File tree

6 files changed

+34
-20
lines changed

6 files changed

+34
-20
lines changed

.travis.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,29 @@ language: python
22

33
sudo: false
44

5-
env:
6-
- TOX_ENV=flake8
7-
# Django 1.11
8-
- TOX_ENV=py27-dj111-cms35
9-
- TOX_ENV=py35-dj111-cms35
10-
# Django 2.0
11-
- TOX_ENV=py35-dj20-cms35
12-
- TOX_ENV=py35-dj20-cms40
13-
# Django 2.1
14-
- TOX_ENV=py35-dj21-cms35
15-
- TOX_ENV=py35-dj21-cms40
5+
matrix:
6+
include:
7+
- python: 3.5
8+
env: TOX_ENV='flake8'
9+
# Django 1.11
10+
- python: 2.7
11+
env: DJANGO='dj111' CMS='cms34'
12+
- python: 3.5
13+
env: DJANGO='dj111' CMS='cms35'
14+
- python: 3.5
15+
env: DJANGO='dj111' CMS='cms36'
16+
# Django 2.0
17+
- python: 3.5
18+
env: DJANGO='dj20' CMS='cms36'
19+
# Django 2.1
20+
- python: 3.5
21+
env: DJANGO='dj21' CMS='cms36'
1622

1723
install:
1824
- pip install tox coverage
25+
- "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then export PY_VER=py27; fi"
26+
- "if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then export PY_VER=py35; fi"
27+
- "if [[ ${DJANGO}z != 'z' ]]; then export TOX_ENV=$PY_VER-$DJANGO-$CMS; fi"
1928

2029
script:
2130
- tox -e $TOX_ENV

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
Changelog
33
=========
44

5+
2.1.1 (unreleased)
6+
==================
7+
8+
* Fixed test matrix
9+
* Exclude ``tests`` folder from release build
10+
11+
512
2.1.0 (2018-11-15)
613
==================
714

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from djangocms_snippet import __version__
66

7-
87
REQUIREMENTS = [
98
'django-cms>=3.4.5',
109
]
@@ -39,7 +38,7 @@
3938
url='https://github.com/divio/djangocms-snippet',
4039
license='BSD',
4140
long_description=open('README.rst').read(),
42-
packages=find_packages(),
41+
packages=find_packages(exclude=['tests']),
4342
include_package_data=True,
4443
zip_safe=False,
4544
install_requires=REQUIREMENTS,

tests/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# requirements from setup.py
22
# other requirements
3-
djangocms-helper>=0.9.2,<0.10
3+
djangocms-helper
44
tox
55
coverage

tests/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
HELPER_SETTINGS = {
55
'INSTALLED_APPS': [],
6-
'ALLOWED_HOSTS': ['localhost'],
76
'CMS_LANGUAGES': {
87
1: [{
98
'code': 'en',
109
'name': 'English',
1110
}]
1211
},
1312
'LANGUAGE_CODE': 'en',
13+
'ALLOWED_HOSTS': ['localhost'],
1414
}
1515

1616
def run():

tox.ini

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
[tox]
22
envlist =
33
flake8
4-
py{27,34,35,36}-dj111-cms{34,35}
5-
py{34,35,36}-dj20-cms{35,36,40}
6-
py{35,36}-dj21-cms{35,36,40}
4+
py{27,34,35,36}-dj111-cms{34,35,36}
5+
py{34,35,36}-dj20-cms36
6+
py{35,36}-dj21-cms36
77

88
skip_missing_interpreters=True
99

10-
1110
[testenv]
1211
deps =
1312
-r{toxinidir}/tests/requirements.txt
@@ -16,7 +15,7 @@ deps =
1615
dj21: Django>=2.1,<2.2
1716
cms34: django-cms>=3.4,<3.5
1817
cms35: django-cms>=3.5,<3.6
19-
cms40: https://github.com/divio/django-cms/archive/release/4.0.x.zip
18+
cms36: https://github.com/divio/django-cms/archive/release/3.6.x.zip
2019
commands =
2120
{envpython} --version
2221
{env:COMMAND:coverage} erase

0 commit comments

Comments
 (0)