Skip to content

Commit 1ef18aa

Browse files
authored
Merge branch 'master' into update-script
2 parents 3b267e8 + 99f19e7 commit 1ef18aa

File tree

3 files changed

+69
-17
lines changed

3 files changed

+69
-17
lines changed

jenkins.bash

100644100755
Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,45 @@
1-
#!/usr/bin/bash
1+
#!/bin/bash
2+
if [ "$JENKINS_URL" == ""]
3+
then
4+
echo "Looks like we're not being run by Jenkins, this is dangerous"
5+
echo "due to use of git clean -fdx command."
6+
exit 1
7+
fi
28
cloneorpull() {
3-
if test -d $1 ; then
4-
(cd $1 && git pull)
9+
if test -d "$1" ; then
10+
(cd "$1" && git pull)
511
else
6-
git clone $2
12+
git clone "$2"
713
fi
814
}
915
venv() {
10-
if ! test -d $1 ; then
11-
virtualenv $1
16+
if ! test -d "$1" ; then
17+
virtualenv "$1"
1218
fi
13-
. $1/bin/activate
19+
# shellcheck source=/dev/null
20+
source "$1"/bin/activate
1421
}
22+
git clean --force -d -x || /bin/true
1523
cloneorpull common-workflow-language https://github.com/common-workflow-language/common-workflow-language.git
1624
venv cwltool-venv
17-
(. cwltool-venv/bin/activate && PIP_DOWNLOAD_CACHE=/var/lib/jenkins/pypi-cache/ pip install -U setuptools wheel pip)
18-
(. cwltool-venv/bin/activate && PIP_DOWNLOAD_CACHE=/var/lib/jenkins/pypi-cache/ python setup.py install)
19-
(. cwltool-venv/bin/activate && PIP_DOWNLOAD_CACHE=/var/lib/jenkins/pypi-cache/ pip install "cwltest>=1.0.20160825151655")
20-
# (. cwltool-venv/bin/activate && cd common-workflow-language && ./run_test.sh --junit-xml=result.xml RUNNER=cwltool DRAFT=draft-2)
21-
(. cwltool-venv/bin/activate && cd common-workflow-language && ./run_test.sh --junit-xml=result.xml RUNNER=cwltool DRAFT=draft-3)
22-
(. cwltool-venv/bin/activate && cd common-workflow-language && ./run_test.sh --junit-xml=result.xml RUNNER=cwltool)
23-
(. cwltool-venv/bin/activate && cd common-workflow-language && ./run_test.sh --junit-xml=result.xml RUNNER=cwltool DRAFT=v1.1.0-dev1 EXTRA=--enable-dev)
24-
(. cwltool-venv/bin/activate && ./build-cwl-docker.sh && docker push commonworkflowlanguage/cwltool_module && docker push commonworkflowlanguage/cwltool)
25+
docker pull node:slim
26+
export PIP_DOWNLOAD_CACHE=/var/lib/jenkins/pypi-cache/
27+
pip install -U setuptools wheel pip
28+
python setup.py install
29+
pip install "cwltest>=1.0.20160825151655"
30+
pushd common-workflow-language
31+
git clean --force -d -x || /bin/true
32+
# shellcheck disable=SC2154
33+
if [[ "$version" = *dev* ]]
34+
then
35+
EXTRA="EXTRA=--enable-dev"
36+
fi
37+
./run_test.sh --junit-xml=result.xml RUNNER=cwltool -j4 DRAFT="${version}" ${EXTRA}
38+
CODE=$?
39+
popd
40+
if [ "$GIT_BRANCH" = "origin/master" ]
41+
then
42+
./build-cwl-docker.sh && docker push commonworkflowlanguage/cwltool_module && docker push commonworkflowlanguage/cwltool
43+
fi
44+
#docker rm -v $(docker ps -a -f status=exited | sed 's/ */ /g' | cut -d' ' -f1)
45+
exit ${CODE}

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
ignore = E124,E128,E129,E201,E202,E225,E226,E231,E265,E271,E302,E303,F401,E402,E501,W503,E731,F811,F821,F841
33
exclude = cwltool/schemas
44

5+
[bdist_wheel]
6+
universal = 1
7+
58
[aliases]
69
test=pytest
710

setup.py

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
author_email='[email protected]',
3333
url="https://github.com/common-workflow-language/cwltool",
3434
download_url="https://github.com/common-workflow-language/cwltool",
35-
license='Apache 2.0',
35+
# platforms='', # empty as is conveyed by the classifier below
36+
# license='', # empty as is conveyed by the classifier below
3637
packages=["cwltool", 'cwltool.tests'],
3738
package_dir={'cwltool.tests': 'tests'},
3839
package_data={'cwltool': ['schemas/draft-2/*.yml',
@@ -74,8 +75,35 @@
7475
cmdclass={'egg_info': tagger},
7576
classifiers=[
7677
'Development Status :: 5 - Production/Stable',
78+
'Environment :: Console',
79+
'Intended Audience :: Developers',
80+
'Intended Audience :: Science/Research',
81+
'Intended Audience :: Healthcare Industry',
82+
'License :: OSI Approved :: Apache Software License',
83+
'Natural Language :: English',
84+
'Operating System :: MacOS :: MacOS X',
7785
'Operating System :: POSIX',
86+
'Operating System :: POSIX :: Linux',
7887
'Operating System :: OS Independent',
79-
'Programming Language :: Python :: 2 :: Only',
88+
# 'Operating System :: Microsoft :: Windows', # soon!
89+
# 'Operating System :: Microsoft :: Windows :: Windows 10', # soon!
90+
# 'Operating System :: Microsoft :: Windows :: Windows 8.1', # soon!
91+
# 'Operating System :: Microsoft :: Windows :: Windows 8', # not tested
92+
# 'Operating System :: Microsoft :: Windows :: Windows 7', # not tested
93+
'Programming Language :: Python :: 2',
94+
'Programming Language :: Python :: 2.7',
95+
'Programming Language :: Python :: 3',
96+
'Programming Language :: Python :: 3.3',
97+
'Programming Language :: Python :: 3.4',
98+
'Programming Language :: Python :: 3.5',
99+
'Programming Language :: Python :: 3.6',
100+
'Topic :: Scientific/Engineering',
101+
'Topic :: Scientific/Engineering :: Bio-Informatics',
102+
'Topic :: Scientific/Engineering :: Astronomy',
103+
'Topic :: Scientific/Engineering :: Atmospheric Science',
104+
'Topic :: Scientific/Engineering :: Information Analysis',
105+
'Topic :: Scientific/Engineering :: Medical Science Apps.',
106+
'Topic :: System :: Distributed Computing',
107+
'Topic :: Utilities',
80108
]
81109
)

0 commit comments

Comments
 (0)