Make sure we have a conference/environments/production.rb file so that
[arvados-dev.git] / jenkins / run-cwl-tests.sh
index 917365d96dc8d66398efa27b0b87cee2fafecb2e..e76ad553ad0c99d04f3adfb99e2c94b797c12801 100755 (executable)
@@ -156,27 +156,10 @@ fi
 
 cd "$WORKSPACE"
 
-# We use $WORKSPACE as the clean directory from which to build the cwltool package
-if [[ ! -d "$WORKSPACE/.git" ]]; then
-  if [[ "$DEBUG" != 0 ]]; then
-    git clone https://github.com/common-workflow-language/common-workflow-language.git .
-  else
-    git clone -q https://github.com/common-workflow-language/common-workflow-language.git .
-  fi
-fi
-
-if [[ "$DEBUG" != 0 ]]; then
-  git checkout master
-  git pull
-else
-  git checkout -q master
-  git pull -q
-fi
-
 pushd reference
 python setup.py install
 python setup.py test
-./docker-node-engine.sh
+./build-node-docker.sh
 popd
 
 pushd conformance
@@ -187,9 +170,39 @@ popd
 cd reference
 handle_python_package
 
+cd cwl-runner
+handle_python_package
+cd ..
+
 ./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 ..
+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 diff-index --quiet HEAD || git commit -m"Build bot"
+git push