1
0
Fork 0
mirror of https://github.com/Luzifer/github-publish.git synced 2024-12-20 09:51:22 +00:00

Add mod mode to all go command calls

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-07-10 12:59:44 +02:00
parent e48574a06a
commit 69b2a776d5
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 9 additions and 3 deletions

View file

@ -1,2 +1,2 @@
05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh
3bd53a160e3ccd6e88df65dfcdac20430f4c8918520d2ce34664094d976ef1b6 golang.sh
7ba45cbdc4ec5dd1c45767d9df1df283bc1a90af83acaeb5c146821d0c16298b golang.sh

View file

@ -35,8 +35,14 @@ go get github.com/mitchellh/gox
popd
step "Test code"
go vet ${PACKAGES}
go test ${PACKAGES}
test_params=()
if [[ -n ${MOD_MODE} ]]; then
test_params+=(-mod="${MOD_MODE}")
fi
go vet "${test_params[@]}" ${PACKAGES}
go test "${test_params[@]}" ${PACKAGES}
step "Cleanup build directory if present"
rm -rf ${BUILD_DIR}