diff --git a/contrib/cirrus/build.sh b/contrib/cirrus/build.sh index b684f8b64..7d9e8e25a 100755 --- a/contrib/cirrus/build.sh +++ b/contrib/cirrus/build.sh @@ -6,22 +6,16 @@ source $(dirname $0)/lib.sh cd $GOSRC make install.tools -echo "Build Binary" -make local-binary -echo "local-test-integration Overlay" -make STORAGE_DRIVER=overlay local-test-integration -echo "local-test-integration Fuse-overlay" -make STORAGE_DRIVER=overlay STORAGE_OPTION=overlay.mount_program=/usr/bin/fuse-overlayfs local-test-integration -echo "local-test-unit" -make STORAGE_DRIVER=vfs local-test-integration -echo "local-test-unit" -make local-test-unit +showrun make local-binary +showrun make STORAGE_DRIVER=overlay local-test-integration +showrun make STORAGE_DRIVER=overlay STORAGE_OPTION=overlay.mount_program=/usr/bin/fuse-overlayfs local-test-integration +showrun make STORAGE_DRIVER=overlay FUSE_OVERLAYFS_DISABLE_OVL_WHITEOUT=1 STORAGE_OPTION=overlay.mount_program=/usr/bin/fuse-overlayfs local-test-integration +showrun make STORAGE_DRIVER=vfs local-test-integration +showrun make local-test-unit case "$OS_REL_VER" in ubuntu-19) - echo "local-test-integration Aufs" - make STORAGE_DRIVER=aufs local-test-integration + showrun make STORAGE_DRIVER=aufs local-test-integration ;; esac -#make STORAGE_DRIVER=overlay FUSE_OVERLAYFS_DISABLE_OVL_WHITEOUT=1 STORAGE_OPTION=overlay.mount_program=/usr/bin/fuse-overlayfs local-test-integration -#make STORAGE_DRIVER=devicemapper STORAGE_OPTION=dm.directlvm_device=/dev/abc local-test-integration +#showrun make STORAGE_DRIVER=devicemapper STORAGE_OPTION=dm.directlvm_device=/dev/abc local-test-integration diff --git a/contrib/cirrus/lib.sh b/contrib/cirrus/lib.sh index 075085621..d545b6c05 100755 --- a/contrib/cirrus/lib.sh +++ b/contrib/cirrus/lib.sh @@ -165,3 +165,17 @@ install_fuse_overlayfs_from_git(){ sudo make install prefix=/usr cd $wd } + +showrun() { + if [[ "$1" == "--background" ]] + then + shift + # Properly escape any nested spaces, so command can be copy-pasted + echo '+ '$(printf " %q" "$@")' &' > /dev/stderr + "$@" & + echo -e "${RED}${NOR}" + else + echo '+ '$(printf " %q" "$@") > /dev/stderr + "$@" + fi +}