File tree Expand file tree Collapse file tree 4 files changed +27
-3
lines changed Expand file tree Collapse file tree 4 files changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ test-template: &test-template
15
15
- run :
16
16
name : install requirements
17
17
command : |
18
- sudo pip install --upgrade pip setuptools ;
18
+ sudo pip install --upgrade pip virtualenv ;
19
19
sudo pip install -r test-requirements.txt;
20
20
if [[ "$CIRCLE_JOB" != "test-3.3" ]] && [[ "$CIRCLE_JOB" != "test-3.4" ]]; then
21
21
sudo pip install -r consul-requirements.txt;
@@ -32,6 +32,15 @@ test-template: &test-template
32
32
else
33
33
pytest -s --junitxml=test-reports/junit.xml testing;
34
34
fi
35
+ - run :
36
+ name : test packaging/install
37
+ # Note, virtualenv isn't supported on Python 3.3 and this test requires virtualenv. But we
38
+ # never build our published package on 3.3 anyway.
39
+ command : |
40
+ if [[ "$CIRCLE_JOB" != "test-3.3" ]]; then
41
+ sudo rm -rf dist *.egg-info;
42
+ ./scripts/test-packaging.sh;
43
+ fi
35
44
- store_test_results :
36
45
path : test-reports
37
46
- store_artifacts :
Original file line number Diff line number Diff line change 66
66
.idea
67
67
* .iml
68
68
.vagrant
69
- ldd /py2
70
- ldd /py3
69
+ test-packaging-venv
Original file line number Diff line number Diff line change 1
1
include requirements.txt
2
2
include README.txt
3
3
include test-requirements.txt
4
+ include consul-requirements.txt
5
+ include dynamodb-requirements.txt
4
6
include redis-requirements.txt
5
7
include python2.6-requirements.txt
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ rm -rf dist
6
+ python setup.py sdist
7
+
8
+ rm -rf test-packaging
9
+ mkdir test-packaging
10
+ cd test-packaging
11
+ virtualenv env
12
+ source env/bin/activate
13
+
14
+ pip install ../dist/* .tar.gz
You can’t perform that action at this time.
0 commit comments