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" git checkout "$branch"
ls 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" stage "Build"
@ -35,16 +42,19 @@ echo "Invoking 'make clean' ..."
make clean make clean
echo "Invoking 'make all' ..." echo "Invoking 'make all' ..."
make all make all
echo "---"
############ ############
stage "Lint" stage "Lint"
############ ############
make lint make lint
echo "---"
############ ############
stage "UnitTests" stage "UnitTests"
############ ############
go test -v . go test -v .
echo "---"
############ ############
stage "Test(Authtoken)" stage "Test(Authtoken)"
@ -64,6 +74,7 @@ else
echo "client cmd performed OK." echo "client cmd performed OK."
unset tokentest unset tokentest
fi fi
echo "---"
############ ############
stage "Test(xc S->C)" stage "Test(xc S->C)"
@ -88,6 +99,7 @@ else
echo "FAILED!" echo "FAILED!"
exit $stat exit $stat
fi fi
echo "---"
############ ############
stage "Test(xc C->S)" 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 ..." echo "Restoring test user $USER .xs_id file ..."
mv ~/.config/xs/.xs_id.bak ~/.config/xs/.xs_id mv ~/.config/xs/.xs_id.bak ~/.config/xs/.xs_id
fi fi
echo "---"
############ ############
stage "Artifacts" stage "Artifacts"
############ ############
echo -n "Creating tarfile ..." echo -n "Creating tarfile ..."
tar -cz --exclude=.git --exclude=cptest -f ${BACILLUS_ARTFDIR}/xs.tgz . tar -cz --exclude=.git --exclude=cptest -f ${BACILLUS_ARTFDIR}/xs.tgz .
echo "---"
############ ############
stage "Cleanup" stage "Cleanup"