Skip to content

Commit 1124d2d

Browse files
authored
Merge pull request #681 from common-workflow-language/better_release
Better release
2 parents 0790efc + fb2bf43 commit 1124d2d

File tree

5 files changed

+21
-19
lines changed

5 files changed

+21
-19
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ language: python
33
cache: pip
44
python:
55
- 2.7
6-
- 3.3
76
- 3.4
87
- 3.5
98
- 3.6

appveyor.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ environment:
1212
PYTHON_VERSION: "2.7.x"
1313
PYTHON_ARCH: "64"
1414

15-
- PYTHON: "C:\\Python33-x64"
16-
PYTHON_VERSION: "3.3.x"
17-
PYTHON_ARCH: "64"
18-
1915
- PYTHON: "C:\\Python34-x64"
2016
PYTHON_VERSION: "3.4.x"
2117
PYTHON_ARCH: "64"

release-test.sh

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ set -x
55

66
package=cwltool
77
module=cwltool
8-
repo=https://github.com/common-workflow-language/cwltool.git
9-
run_tests="py.test --ignore ${module}/schemas/ --pyarg cwltool"
8+
slug=${TRAVIS_PULL_REQUEST_SLUG:=common-workflow-language/cwltool}
9+
repo=https://github.com/${slug}.git
10+
run_tests="bin/py.test --ignore ${module}/schemas/ --pyarg cwltool"
1011
pipver=7.0.2 # minimum required version of pip
1112

1213
rm -Rf testenv? || /bin/true
@@ -17,6 +18,7 @@ if [ "${RELEASE_SKIP}" != "head" ]
1718
then
1819
virtualenv testenv1
1920
# First we test the head
21+
# shellcheck source=/dev/null
2022
source testenv1/bin/activate
2123
rm testenv1/lib/python-wheels/setuptools* \
2224
&& pip install --force-reinstall -U pip==${pipver} \
@@ -27,7 +29,9 @@ then
2729
mkdir testenv1/not-${module}
2830
# if there is a subdir named '${module}' py.test will execute tests
2931
# there instead of the installed module's tests
30-
pushd testenv1/not-${module}; ../bin/${run_tests}; popd
32+
pushd testenv1/not-${module}
33+
# shellcheck disable=SC2086
34+
../${run_tests}; popd
3135
fi
3236

3337
virtualenv testenv2
@@ -38,24 +42,27 @@ virtualenv testenv4
3842
# Secondly we test via pip
3943

4044
cd testenv2
45+
# shellcheck source=/dev/null
4146
source bin/activate
4247
rm lib/python-wheels/setuptools* \
4348
&& pip install --force-reinstall -U pip==${pipver} \
4449
&& pip install setuptools==20.10.1 wheel
45-
pip install -e git+${repo}@${HEAD}#egg=${package}
50+
pip install -e "git+${repo}@${HEAD}#egg=${package}"
4651
cd src/${package}
4752
make install-dep
4853
make dist
4954
make test
5055
cp dist/${package}*tar.gz ../../../testenv3/
5156
pip uninstall -y ${package} || true; pip uninstall -y ${package} || true; make install
5257
cd ../.. # no subdir named ${proj} here, safe for py.testing the installed module
53-
bin/${run_tests}
58+
# shellcheck disable=SC2086
59+
${run_tests}
5460

5561
# Is the distribution in testenv2 complete enough to build another
5662
# functional distribution?
5763

5864
cd ../testenv3/
65+
# shellcheck source=/dev/null
5966
source bin/activate
6067
rm lib/python-wheels/setuptools* \
6168
&& pip install --force-reinstall -U pip==${pipver} \
@@ -69,4 +76,6 @@ make dist
6976
make test
7077
pip uninstall -y ${package} || true; pip uninstall -y ${package} || true; make install
7178
mkdir ../not-${module}
72-
pushd ../not-${module} ; ../../bin/${run_tests}; popd
79+
pushd ../not-${module}
80+
# shellcheck disable=SC2086
81+
../../${run_tests}; popd

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
'Programming Language :: Python :: 2',
8989
'Programming Language :: Python :: 2.7',
9090
'Programming Language :: Python :: 3',
91-
'Programming Language :: Python :: 3.3',
9291
'Programming Language :: Python :: 3.4',
9392
'Programming Language :: Python :: 3.5',
9493
'Programming Language :: Python :: 3.6',

tox.ini

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
envlist =
3-
py{27,33,34,35,36}-lint,
4-
py{27,33,34,35,36}-unit,
3+
py{27,34,35,36}-lint,
4+
py{27,34,35,36}-unit,
55
py35-mypy{2,3},
66
py27-pipconflictchecker,
77
py27-lint-readme,
@@ -12,22 +12,21 @@ skip_missing_interpreters = True
1212

1313
[tox:travis]
1414
2.7 = py27
15-
3.3 = py33
1615
3.4 = py34
1716
3.5 = py35
1817
3.6 = py36
1918

2019
[testenv]
2120
deps =
2221
-rrequirements.txt
23-
py{27,33,34,35,36}-lint: flake8
22+
py{27,34,35,36}-lint: flake8
2423

2524
commands =
26-
py{27,33,34,35,36}-unit: python setup.py test
27-
py{27,33,34,35,36}-lint: flake8 schema_salad setup.py
25+
py{27,34,35,36}-unit: python setup.py test
26+
py{27,34,35,36}-lint: flake8 schema_salad setup.py
2827

2928
whitelist_externals =
30-
py{27,33,34,35,36}-lint: flake8
29+
py{27,34,35,36}-lint: flake8
3130

3231
[testenv:py35-mypy2]
3332
commands = make mypy2

0 commit comments

Comments
 (0)