Reverted ci script to master version

This commit is contained in:
Russ Magee 2025-12-08 22:32:49 -08:00
parent c466898072
commit ad17b2c474
1 changed files with 16 additions and 2 deletions

View File

@ -25,8 +25,15 @@ echo "Building most recent push on branch $branch"
git checkout "$branch"
ls
go mod init blitter.com/go/xs
go mod tidy
#!############
#!stage "GoMod"
#!############
#!go clean -modcache
#!
#!rm -f go.{mod,sum}
#!go mod init blitter.com/go/xs
#!go mod tidy
#!echo "---"
############
stage "Build"
@ -35,16 +42,19 @@ echo "Invoking 'make clean' ..."
make clean
echo "Invoking 'make all' ..."
make all
echo "---"
############
stage "Lint"
############
make lint
echo "---"
############
stage "UnitTests"
############
go test -v .
echo "---"
############
stage "Test(Authtoken)"
@ -64,6 +74,7 @@ else
echo "client cmd performed OK."
unset tokentest
fi
echo "---"
############
stage "Test(xc S->C)"
@ -88,6 +99,7 @@ else
echo "FAILED!"
exit $stat
fi
echo "---"
############
stage "Test(xc C->S)"
@ -98,12 +110,14 @@ if [ -f ~/.config/xs/.xs_id.bak ]; then
echo "Restoring test user $USER .xs_id file ..."
mv ~/.config/xs/.xs_id.bak ~/.config/xs/.xs_id
fi
echo "---"
############
stage "Artifacts"
############
echo -n "Creating tarfile ..."
tar -cz --exclude=.git --exclude=cptest -f ${BACILLUS_ARTFDIR}/xs.tgz .
echo "---"
############
stage "Cleanup"