Skip to content

Commit 4c4170d

Browse files
author
Ryan P Kilby
committed
Add 'dist' build
1 parent 085747a commit 4c4170d

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,19 @@ matrix:
2222
- { python: "3.6", env: DJANGO=2.0 }
2323
- { python: "2.7", env: TOXENV=lint }
2424
- { python: "2.7", env: TOXENV=docs }
25+
26+
- python: "3.6"
27+
env: TOXENV=dist
28+
script:
29+
- python setup.py bdist_wheel
30+
- tox
31+
- tox --installpkg ./dist/djangorestframework-*.whl
32+
2533
- python: "2.7"
2634
env: TOXENV=readme
2735
addons:
2836
apt_packages: pandoc
37+
2938
exclude:
3039
- { python: "2.7", env: DJANGO=master }
3140
- { python: "2.7", env: DJANGO=2.0 }

tox.ini

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ envlist =
77
{py27,py34,py35,py36}-django111,
88
{py34,py35,py36}-django20,
99
{py35,py36}-djangomaster,
10-
lint,docs,readme,
10+
dist,lint,docs,readme,
1111

1212
[travis:env]
1313
DJANGO =
@@ -18,6 +18,8 @@ DJANGO =
1818

1919
[testenv]
2020
commands = ./runtests.py --fast {posargs} --coverage -rw
21+
usedevelop = True
22+
envdir = {toxworkdir}/venvs/{envname}
2123
setenv =
2224
PYTHONDONTWRITEBYTECODE=1
2325
PYTHONWARNINGS=once
@@ -29,6 +31,14 @@ deps =
2931
-rrequirements/requirements-testing.txt
3032
-rrequirements/requirements-optionals.txt
3133

34+
[testenv:dist]
35+
commands = ./runtests.py --fast {posargs}
36+
usedevelop = False
37+
deps =
38+
django
39+
-rrequirements/requirements-testing.txt
40+
-rrequirements/requirements-optionals.txt
41+
3242
[testenv:lint]
3343
basepython = python2.7
3444
commands = ./runtests.py --lintonly

0 commit comments

Comments
 (0)