Added test cases to build and updated CI to use proper directories when copying
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
60d6a1fdcd
commit
3521f249a7
@ -8,6 +8,12 @@ steps:
|
||||
commands:
|
||||
- echo 'Starting build pipeline for AOC2021'
|
||||
|
||||
- name: test
|
||||
image: mcr.microsoft.com/dotnet/sdk:5.0
|
||||
commands:
|
||||
- cd AOC2021.Test
|
||||
- dotnet test
|
||||
|
||||
- name: build-aoc-2021
|
||||
image: plugins/docker
|
||||
settings:
|
||||
@ -17,6 +23,8 @@ steps:
|
||||
from_secret: docker_password
|
||||
repo: 97waterpolo/aoc-2021
|
||||
dockerfile: AOC2021/Dockerfile
|
||||
depends_on:
|
||||
- test
|
||||
|
||||
- name: finish
|
||||
image: busybox
|
||||
|
@ -3,7 +3,7 @@ WORKDIR /app
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
|
||||
WORKDIR /src
|
||||
COPY ["AOC2021.csproj", "AOC2021/"]
|
||||
COPY ["AOC2021/AOC2021.csproj", "AOC2021/"]
|
||||
RUN dotnet restore "AOC2021/AOC2021.csproj"
|
||||
COPY [".", "AOC2021/."]
|
||||
WORKDIR "/src/AOC2021"
|
||||
|
Loading…
x
Reference in New Issue
Block a user