mirror of https://gogs.blitter.com/RLabs/xs
Reverted ci script to master version
This commit is contained in:
parent
c466898072
commit
ad17b2c474
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue