File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 20
20
import paver .setuputils
21
21
paver .setuputils .install_distutils_tasks ()
22
22
import paver .doctools
23
- import docpaver
23
+ try :
24
+ import docpaver
25
+ except :
26
+ import warnings
27
+ warnings .warn ('docpaver was not found, will not be able to produce documentation' )
24
28
25
29
# What project are we building?
26
30
PROJECT = 'virtualenvwrapper'
@@ -176,7 +180,13 @@ def sdist(options):
176
180
"""Create a source distribution.
177
181
"""
178
182
pass
179
-
183
+
184
+ @task
185
+ @needs (['sdist' ])
186
+ def test_install (options ):
187
+ sh ('./tests/test_install.sh "%s" "%s"' % (options .sdist .dist_dir , VERSION ))
188
+ return
189
+
180
190
@task
181
191
def test ():
182
192
sh ('bash ./tests/test.sh' )
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ #
3
+ # Test installation of virtualenvwrapper in a new virtualenv.
4
+ #
5
+
6
+ test_dir=$( dirname $0 )
7
+ dist_dir=" $1 "
8
+ version=" $2 "
9
+
10
+ export WORKON_HOME=" ${TMPDIR:-/ tmp} /WORKON_HOME"
11
+ mkvirtualenv " installtest"
12
+ easy_install " $dist_dir /virtualenvwrapper-$version .tar.gz"
13
+ RC=$?
14
+
15
+ rm -rf " $WORKON_HOME "
16
+ exit $RC
You can’t perform that action at this time.
0 commit comments