Skip to content

Commit ec69c69

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

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
@@ -2,12 +2,13 @@
22
addopts=--tb=short
33

44
[tox]
5+
envdir = {toxworkdir}/venvs/{envname}
56
envlist =
67
{py27,py34,py35}-django110,
78
{py27,py34,py35,py36}-django111,
89
{py34,py35,py36}-django20,
910
{py35,py36}-djangomaster,
10-
lint,docs,readme,
11+
dist,lint,docs,readme,
1112

1213
[travis:env]
1314
DJANGO =
@@ -18,6 +19,7 @@ DJANGO =
1819

1920
[testenv]
2021
commands = ./runtests.py --fast {posargs} --coverage -rw
22+
usedevelop = True
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)