Skip to content

Instantly share code, notes, and snippets.

@jmfloreszazo
Created April 28, 2023 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmfloreszazo/64bc8e3ca819553510c1dce15a81eaf8 to your computer and use it in GitHub Desktop.
Save jmfloreszazo/64bc8e3ca819553510c1dce15a81eaf8 to your computer and use it in GitHub Desktop.
#!/bin/sh
cd "././app" # change to SLN route
echo "dotnet build"
dotnet clean
dotnet build
rc=$?
if [[ $rc != 0 ]] ; then
echo -e "build failed"
exit $rc
fi
echo "dotnet test"
dotnet test
rc=$?
if [[ $rc != 0 ]] ; then
echo -e "test failed"
exit $rc
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment