Added some missing commands from the scripts for Linux.

Removed some unnecessary messages when cleaning up build artifacts.
Added the binary as a build artifact to be cleaned up.
git stash is now used for updates to better deal with changes to chmodded files.
This commit is contained in:
Azareal 2018-06-06 14:33:47 +10:00
parent aa073ced48
commit 83ae671948
7 changed files with 73 additions and 15 deletions

View File

@ -126,11 +126,13 @@ go get -u github.com/denisenkom/go-mssqldb
go get -u github.com/fsnotify/fsnotify
rm template_*.go
rm -f template_*.go
rm gen_*.go
rm -f gen_*.go
rm tmpl_client/template_*.go
rm -f tmpl_client/template_*.go
rm -f ./Gosora
go generate

View File

@ -1,7 +1,18 @@
echo "Deleting artifacts from previous builds"
rm template_*.go
rm gen_*.go
rm tmpl_client/template_*.go
rm -f template_*.go
rm -f gen_*.go
rm -f tmpl_client/template_*.go
rm -f ./Gosora
echo "Building the router generator"
go build ./router_gen
echo "Running the router generator"
router_gen.exe
echo "Building the query generator"
go build ./query_gen
echo "Running the query generator"
query_gen.exe
echo "Building Gosora"
go generate

View File

@ -1,7 +1,18 @@
echo "Deleting artifacts from previous builds"
rm template_*.go
rm gen_*.go
rm tmpl_client/template_*.go
rm -f template_*.go
rm -f gen_*.go
rm -f tmpl_client/template_*.go
rm -f ./Gosora
echo "Building the router generator"
go build ./router_gen
echo "Running the router generator"
router_gen.exe
echo "Building the query generator"
go build ./query_gen
echo "Running the query generator"
query_gen.exe
echo "Building Gosora"
go generate

View File

@ -34,7 +34,9 @@ go get -u github.com/fsnotify/fsnotify
echo "Updating Gosora"
rm ./schema/lastSchema.json
cp ./schema/schema.json ./schema/lastSchema.json
git stash
git pull origin master
git stash apply
echo "Patching Gosora"
cd ./patcher

View File

@ -98,11 +98,21 @@ cd schema
del /Q lastSchema.json
copy schema.json lastSchema.json
cd ..
git stash
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
git pull origin master
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
git stash apply
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Patching Gosora
go generate

View File

@ -1,11 +1,22 @@
echo "Deleting artifacts from previous builds"
rm template_*.go
rm gen_*.go
rm tmpl_client/template_*.go
rm -f template_*.go
rm -f gen_*.go
rm -f tmpl_client/template_*.go
rm -f ./Gosora
echo "Generating the dynamic code"
go generate
echo "Building the router generator"
go build ./router_gen
echo "Running the router generator"
router_gen.exe
echo "Building the query generator"
go build ./query_gen
echo "Running the query generator"
query_gen.exe
echo "Building Gosora"
go build -o Gosora

View File

@ -1,11 +1,22 @@
echo "Deleting artifacts from previous builds"
rm template_*.go
rm gen_*.go
rm tmpl_client/template_*.go
rm -f template_*.go
rm -f gen_*.go
rm -f tmpl_client/template_*.go
rm -f ./Gosora
echo "Generating the dynamic code"
go generate
echo "Building the router generator"
go build ./router_gen
echo "Running the router generator"
router_gen.exe
echo "Building the query generator"
go build ./query_gen
echo "Running the query generator"
query_gen.exe
echo "Building Gosora"
go build -o Gosora -tags no_ws