Make sure we have a conference/environments/production.rb file so that
[arvados-dev.git] / jenkins / run-cwl-tests.sh
index ac7de4f462ba60c036345734c0c303aae6a138f5..e76ad553ad0c99d04f3adfb99e2c94b797c12801 100755 (executable)
@@ -170,6 +170,10 @@ popd
 cd reference
 handle_python_package
 
+cd cwl-runner
+handle_python_package
+cd ..
+
 ./build-cwl-docker.sh
 
 if [[ "$UPLOAD_DOCKER" != 0 ]]; then
@@ -185,9 +189,20 @@ virtualenv ../venv
 python setup.py install
 cd ..
 
-git clone git@github.com:common-workflow-language/common-workflow-language.github.io.git
-python -mcwltool specification/cwlsite.cwl specification/cwlsite-job.json --outdir=common-workflow-language.github.io
+if test -d common-workflow-language.github.io ; then
+    cd common-workflow-language.github.io
+    git fetch
+    git reset --hard origin/master
+    cd ..
+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 ..
+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 diff-index --quiet HEAD || git commit -m"Build bot"
 git push