Skip to content

Commit 7493894

Browse files
create a new test run script with selfinstall
1 parent 809a929 commit 7493894

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ python:
99
- '3.6-dev'
1010
env:
1111
- TOXENV=py-test
12+
- SELFINSTALL=1
1213

1314
matrix:
1415
include:
@@ -22,7 +23,7 @@ cache:
2223
- $Home/.cache/pip
2324
install: pip install tox
2425
script:
25-
- tox -e $TOXENV
26+
- python testing/runtests_travis.py
2627

2728

2829

testing/runtests_travis.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
from subprocess import call
3+
4+
import os
5+
6+
if os.environ['TOXENV']:
7+
import tox
8+
tox.cmdline()
9+
elif os.environ['SELFINSTALL']:
10+
call('python setup.py sdist', shell=True)
11+
call('easy_install dist/*', shell=True)
12+
import pkg_ressources
13+
dist = pkg_ressources.get_distribution('setuptools_scm')
14+
assert dist.version != '0.0'

0 commit comments

Comments
 (0)