Skip to content

Commit c5ac2f7

Browse files
authored
Merge pull request #465 from common-workflow-language/jenkins
upload the cwltool-conformance jenkins build script
2 parents 1075312 + eb97f72 commit c5ac2f7

File tree

3 files changed

+34
-10
lines changed

3 files changed

+34
-10
lines changed

jenkins.bash

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/bash
2+
cloneorpull() {
3+
if test -d $1 ; then
4+
(cd $1 && git pull)
5+
else
6+
git clone $2
7+
fi
8+
}
9+
venv() {
10+
if ! test -d $1 ; then
11+
virtualenv $1
12+
fi
13+
. $1/bin/activate
14+
}
15+
cloneorpull common-workflow-language https://github.com/common-workflow-language/common-workflow-language.git
16+
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)

tests/test_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class TestFactory(unittest.TestCase):
118118
def test_factory(self):
119119
f = cwltool.factory.Factory()
120120
echo = f.make(get_data("tests/echo.cwl"))
121-
self.assertEqual(echo(inp="foo"), {"out": "foo\n"})
121+
self.assertEqual(echo(inp="foo"), {"out": b"foo\n"})
122122

123123
def test_partial_scatter(self):
124124
f = cwltool.factory.Factory(on_error="continue")

tests/test_fetch.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ def check_exists(self, url): # type: (unicode) -> bool
3535
else:
3636
return False
3737

38-
def urljoin(self, base, url):
39-
urlsp = urllib.parse.urlsplit(url)
40-
if urlsp.scheme:
41-
return url
42-
basesp = urllib.parse.urlsplit(base)
43-
44-
if basesp.scheme == "keep":
45-
return base + "/" + url
46-
return urllib.parse.urljoin(base, url)
38+
def urljoin(self, base, url):
39+
urlsp = urllib.parse.urlsplit(url)
40+
if urlsp.scheme:
41+
return url
42+
basesp = urllib.parse.urlsplit(base)
43+
44+
if basesp.scheme == "keep":
45+
return base + "/" + url
46+
return urllib.parse.urljoin(base, url)
4747

4848
def test_resolver(d, a):
4949
return "baz:bar/" + a

0 commit comments

Comments
 (0)