Skip to content

Commit 3d2162f

Browse files
committed
re-order tests and test with twine
1 parent 47bbd11 commit 3d2162f

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.travis.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,24 @@ matrix:
2020

2121
include:
2222
- os: linux
23-
python: 3.5
24-
env: DISTRIB="ubuntu"
25-
- os: linux
26-
python: 3.6
27-
env: DISTRIB="ubuntu"
23+
env: DISTRIB="conda" EXAMPLES="true" PYTHON=3.7"
2824
- os: linux
29-
python: 3.7
30-
env: DISTRIB="ubuntu"
25+
env: DISTRIB="conda" RUN_FLAKE8="true" SKIP_TESTS="true"
3126
- os: linux
3227
env: DISTRIB="conda" PYTHON="3.5"
3328
- os: linux
3429
env: DISTRIB="conda" COVERAGE="true" DOCPUSH="true" PYTHON="3.6"
3530
- os: linux
3631
env: DISTRIB="conda" TEST_DIST="true" PYTHON="3.7"
3732
- os: linux
38-
env: DISTRIB="conda" EXAMPLES="true" PYTHON=3.7"
33+
python: 3.5
34+
env: DISTRIB="ubuntu"
3935
- os: linux
40-
env: DISTRIB="conda" RUN_FLAKE8="true" SKIP_TESTS="true"
41-
42-
36+
python: 3.6
37+
env: DISTRIB="ubuntu"
38+
- os: linux
39+
python: 3.7
40+
env: DISTRIB="ubuntu"
4341
# Temporarily disabling OSX builds because thy take too long
4442
# Set language to generic to not break travis-ci
4543
# https://github.com/travis-ci/travis-ci/issues/2312#issuecomment-195620855

ci_scripts/install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ cat requirements.txt | xargs -n 1 -L 1 pip install
99
pip freeze
1010

1111
if [[ "$TEST_DIST" == "true" ]]; then
12+
pip install twine
1213
python setup.py sdist
1314
# Find file which was modified last as done in https://stackoverflow.com/a/4561987
1415
dist=`find dist -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "`
1516
echo "Installing $dist"
1617
pip install "$dist"
18+
twine check "$dist"
1719
else
1820
python setup.py check -m -s
1921
python setup.py install

0 commit comments

Comments
 (0)