Build the cwltest package, which lives out of tree.
authorWard Vandewege <wvandewege@veritasgenetics.com>
Tue, 12 Mar 2019 14:31:13 +0000 (10:31 -0400)
committerWard Vandewege <wvandewege@veritasgenetics.com>
Tue, 12 Mar 2019 14:34:04 +0000 (10:34 -0400)
refs #9945

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <wvandewege@veritasgenetics.com>

build/run-build-packages.sh
build/run-library.sh

index 6264e93f0f1e9b3d2d6634de35a76a0a55fd2588..b800d43e08a060e1231cf1bfdfee5facdca02ed9 100755 (executable)
@@ -345,6 +345,17 @@ fpm_build_virtualenv "arvados-docker-cleaner" "services/dockercleaner" "python3"
 # The Arvados crunchstat-summary tool
 fpm_build_virtualenv "crunchstat-summary" "tools/crunchstat-summary"
 
+# The cwltest package, which lives out of tree
+cd "$WORKSPACE"
+if [[ -e "$WORKSPACE/cwltest" ]]; then
+       rm -rf "$WORKSPACE/cwltest"
+fi
+git clone https://github.com/common-workflow-language/cwltest.git
+# signal to our build script that we want a cwltest executable installed in /usr/bin/
+mkdir cwltest/bin && touch cwltest/bin/cwltest
+fpm_build_virtualenv "cwltest" "cwltest"
+rm -rf "$WORKSPACE/cwltest"
+
 # Build the API server package
 test_rails_package_presence arvados-api-server "$WORKSPACE/services/api"
 if [[ "$?" == "0" ]]; then
index 36a5533aaf6e1b157beedd8661cee5dd738b33a6..2497ac1759d7e28cd367bd3eefe894ad72c50de6 100755 (executable)
@@ -423,7 +423,8 @@ fpm_build_virtualenv () {
     echo "  $pip install $DASHQ_UNLESS_DEBUG $CACHE_FLAG -U setuptools"
     exit 1
   fi
-  if ! $python setup.py $DASHQ_UNLESS_DEBUG sdist; then
+  # filter a useless warning (when building the cwltest package) from the stderr output
+  if ! $python setup.py $DASHQ_UNLESS_DEBUG sdist 2> >(grep -v 'warning: no previously-included files matching'); then
     echo "Error, unable to run $python setup.py sdist for $PKG"
     exit 1
   fi