X-Git-Url: https://git.arvados.org/arvados-dev.git/blobdiff_plain/84cfa56ae6bff1649b73a63c8f23d20a5a87f9ff..842a901fa5070c5667db363d9425129a396f30c4:/jenkins/run-cwl-tests.sh diff --git a/jenkins/run-cwl-tests.sh b/jenkins/run-cwl-tests.sh index e65fda1..45d2d86 100755 --- a/jenkins/run-cwl-tests.sh +++ b/jenkins/run-cwl-tests.sh @@ -156,49 +156,61 @@ fi cd "$WORKSPACE" -pushd reference -python setup.py install -python setup.py test -./build-node-docker.sh -popd +if test -d cwltool ; then + (cd cwltool + git fetch + git reset --hard origin/master + ) +else + git clone git@github.com:common-workflow-language/cwltool.git + (cd cwltool + git config user.email "sysadmin@curoverse.com" + git config user.name "Curoverse build bot" + ) +fi + +(cd cwltool + python setup.py install + python setup.py test +) + +./run_test.sh RUNNER=cwltool DRAFT=draft-2 +./run_test.sh RUNNER=cwltool DRAFT=draft-3 -pushd conformance -pwd -./run_test.sh -popd +(cd cwltool + handle_python_package +) -cd reference -handle_python_package +(cd cwltool/cwl-runner + handle_python_package +) -./build-cwl-docker.sh +(cd cwltool + ./build-cwl-docker.sh +) if [[ "$UPLOAD_DOCKER" != 0 ]]; then docker push commonworkflowlanguage/cwltool_module docker push commonworkflowlanguage/cwltool - docker push commonworkflowlanguage/nodejs-engine fi -# Setup virtualenv and build documentation. - -virtualenv ../venv -. ../venv/bin/activate -python setup.py install -cd .. - if test -d common-workflow-language.github.io ; then - cd common-workflow-language.github.io - git fetch - git reset --hard origin/master - cd .. + (cd common-workflow-language.github.io + git fetch + git reset --hard origin/master + ) else git clone git@github.com:common-workflow-language/common-workflow-language.github.io.git - cd common-workflow-language.github.io - git config user.email "sysadmin@curoverse.com" - git config user.name "Curoverse build bot" - cd .. + (cd common-workflow-language.github.io + git config user.email "sysadmin@curoverse.com" + git config user.name "Curoverse build bot" + ) fi -python -mcwltool specification/cwlsite.cwl specification/cwlsite-job.json --outdir=$PWD/common-workflow-language.github.io -cd common-workflow-language.github.io -git add --all -git commit -m"Build bot" -git push + +cwltool --outdir=$PWD/common-workflow-language.github.io site/cwlsite.cwl site/cwlsite-job.json + +(cd common-workflow-language.github.io + git add --all + git diff-index --quiet HEAD || git commit -m"Build bot" + git push +)