github.com/DelineaXPM/dsv-cli@v1.40.6/cicd-integration/script/cicd-test.sh (about) 1 #!/usr/bin/env bash 2 3 set -e pipefail 4 5 export GO111MODULE=on 6 7 EXITCODE=0 8 9 if [[ -f .env.sh ]]; then 10 source ./.env.sh 11 fi 12 13 cd "$(dirname "$0")"/.. 14 15 if [[ -f out.txt ]]; then 16 rm -f out.txt 17 fi 18 19 echo "integration tests" 20 CGO_ENABLED=1 go test -v -count 1 -p 1 ./... 2>&1 > out.txt && EXITCODE=$((EXITCODE+$?)) || EXITCODE=$((EXITCODE+$?)) 21 echo "integration tests exit code: $EXITCODE" 22 23 pushd "$(pwd)" &>/dev/null 24 25 cd ../cli-config 26 rm -rf .thy.yml 27 28 popd &>/dev/null 29 30 exit $EXITCODE 31