Skip to content

Commit 877a9a7

Browse files
committed
(ci): add a Python 2.7 test
- needed to rm pyproject.toml because pip decided to read it during editable install and errored out - how it read the poetry section I don't even know or why that instead of setup.py I haven't a clue - also not sure why it didn't error out on the Python 3.4 test.... - dafuq is going on here, it occurs even on job restarts...
1 parent d07dcb3 commit 877a9a7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ python: '3.5'
44
# test multiple Django versions
55
matrix:
66
include:
7+
# Python 3.x envs
78
- env: DJANGO_VERSION=2.2
89
- env: DJANGO_VERSION=1.9
910
- env: DJANGO_VERSION=1.5
@@ -15,6 +16,18 @@ matrix:
1516
- pip install django==1.5 pytest-django==2.9 pytest==3.5 pytest-cov==2.6
1617
- pip install -e . # won't be able to do this if setup.py is removed!
1718

19+
# Python 2.7 envs
20+
- env: DJANGO_VERSION=1.11 # latest Django that supports 2.7
21+
python: '2.7'
22+
# Poetry fails to resolve multi-constrant deps, so don't use it (https://github.com/sdispater/poetry/issues/666#issuecomment-531100022)
23+
before_install: skip
24+
install:
25+
# pytest 5+ does not support Python 2.7
26+
- pip install django==1.11 "pytest<5" pytest-django pytest-cov
27+
- rm pyproject.toml # editable install reads from here somehow and bugs out on 2.7!!??!!: https://travis-ci.org/agilgur5/django-serializable-model/jobs/584822609
28+
- pip install -e . # won't be able to do this if setup.py is removed!
29+
30+
1831
before_install: pip install poetry
1932
install:
2033
- poetry install

0 commit comments

Comments
 (0)