File tree Expand file tree Collapse file tree 3 files changed +34
-10
lines changed Expand file tree Collapse file tree 3 files changed +34
-10
lines changed Original file line number Diff line number Diff line change
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)
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ class TestFactory(unittest.TestCase):
118
118
def test_factory (self ):
119
119
f = cwltool .factory .Factory ()
120
120
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 " })
122
122
123
123
def test_partial_scatter (self ):
124
124
f = cwltool .factory .Factory (on_error = "continue" )
Original file line number Diff line number Diff line change @@ -35,15 +35,15 @@ def check_exists(self, url): # type: (unicode) -> bool
35
35
else :
36
36
return False
37
37
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 )
47
47
48
48
def test_resolver (d , a ):
49
49
return "baz:bar/" + a
You can’t perform that action at this time.
0 commit comments