change build scripts to work with TeamCity
This commit is contained in:
parent
7b1daeec40
commit
58c624300f
2 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
go mod download
|
go mod download
|
||||||
|
|
||||||
package="./User ID Praser/IdParser.go"
|
package="./User ID Parser/IdParser.go"
|
||||||
|
|
||||||
package_split=(${package//\// })
|
package_split=(${package//\// })
|
||||||
package_name="IdParser"
|
package_name="IdParser"
|
||||||
|
@ -19,7 +19,7 @@ do
|
||||||
output_name+='.exe'
|
output_name+='.exe'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
env GOOS=$GOOS GOARCH=$GOARCH go build -o ./User ID Praser/build/$output_name $package
|
env GOOS=$GOOS GOARCH=$GOARCH GOPATH="./User ID Parser/" go build -o ./User ID Praser/build/$output_name $package
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo 'An error has occurred! Aborting the script execution...'
|
echo 'An error has occurred! Aborting the script execution...'
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -19,7 +19,7 @@ do
|
||||||
output_name+='.exe'
|
output_name+='.exe'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
env GOOS=$GOOS GOARCH=$GOARCH go build -o "./Locate ID/build/$output_name" $package
|
env GOOS=$GOOS GOARCH=$GOARCH GOPATH="./Locate ID/" go build -o "./Locate ID/build/$output_name" $package
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo 'An error has occurred! Aborting the script execution...'
|
echo 'An error has occurred! Aborting the script execution...'
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Reference in a new issue