HEAD^{tree}) set +e curl -f https://${treehash_bucket}.s3.amazonaws.com/${repotree_hash} 2>/dev/null status=$? set -e if [ $status = "0" ]; then echo 'skip testing because the test for the same source tree has already passed' exit 0 fi go test ./... 10
name: Save current tree sha command: git rev-parse @^{tree} > << pipeline.parameters.tree_sha_path >> - restore_cache: key: tree_status_{{ checksum "<< pipeline.parameters.tree_sha_path >>" }} - run: name: Put empty file if tree status does not exist command: | if [ ! -e "<< pipeline.parameters.tree_status_path >>" ]; then touch << pipeline.parameters.tree_status_path >> fi 22