Skip to content

Instantly share code, notes, and snippets.

@bolorundurowb
Last active February 28, 2022 12:29
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bolorundurowb/f96abbadc0128120c9af907614a50324 to your computer and use it in GitHub Desktop.
Save bolorundurowb/f96abbadc0128120c9af907614a50324 to your computer and use it in GitHub Desktop.
A .NET/Dot Net Core 2.0 Circle CI configuration file (Uses CircleCI 1.0)
dependencies:
pre:
- curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
- sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
- sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
- sudo apt-get update
- sudo apt-get install dotnet-sdk-2.0.2
override:
- dotnet restore
test:
pre:
- dotnet --version
- dotnet build ./<solution-file-name>.sln
override:
- dotnet test <test-project-name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment