You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dice_app/drone.yml

25 lines
557 B

kind: pipeline
type: docker
name: default
trigger:
event:
- push
steps:
- name: build
image: mcr.microsoft.com/dotnet/sdk:5.0
commands:
- cd Sources/
- dotnet restore DiceApp.sln
- dotnet build DiceApp.sln -c Release --no-restore
- dotnet publish DiceApp.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
- name: tests
image: mcr.microsoft.com/dotnet/sdk:5.0
commands:
- cd Sources/
- dotnet restore DiceApp.sln
- dotnet test DiceApp.sln --no-restore
depends_on: [build]