Skip to content

Commit 0173ad8

Browse files
committed
Add tox/travis config
1 parent c2c878d commit 0173ad8

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.pyc
2+
/.tox/
23
/wagtail_experiments.egg-info/

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
language: python
2+
cache: pip
3+
4+
# Use container-based infrastructure
5+
sudo: false
6+
7+
matrix:
8+
include:
9+
- env: TOXENV=py27-dj18-wt17
10+
python: 2.7
11+
- env: TOXENV=py27-dj19-wt17
12+
python: 2.7
13+
- env: TOXENV=py27-dj110-wt17
14+
python: 2.7
15+
- env: TOXENV=py34-dj110-wt17
16+
python: 3.4
17+
- env: TOXENV=py35-dj18-wt17
18+
python: 3.5
19+
- env: TOXENV=py35-dj19-wt17
20+
python: 3.5
21+
- env: TOXENV=py35-dj110-wt17
22+
python: 3.5
23+
24+
# Package installation
25+
install:
26+
- pip install tox
27+
28+
# Run the tests
29+
script:
30+
tox

tox.ini

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[tox]
2+
envlist = py{27,34,35}-dj{18,19,110}-wt{17}
3+
4+
[testenv]
5+
basepython =
6+
py27: python2.7
7+
py34: python3.4
8+
py35: python3.5
9+
10+
deps =
11+
dj18: Django>=1.8,<1.9
12+
dj19: Django>=1.9,<1.10
13+
dj110: Django>=1.10,<1.11
14+
15+
wt17: wagtail>=1.7,<1.8
16+
17+
commands = ./runtests.py

0 commit comments

Comments
 (0)