Added test cases to build and updated CI to use proper directories when copying
continuous-integration/drone/push Build is failing Details

master
Xander Sigler 3 years ago
parent 60d6a1fdcd
commit 3521f249a7

@ -8,6 +8,12 @@ steps:
commands: commands:
- echo 'Starting build pipeline for AOC2021' - 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 - name: build-aoc-2021
image: plugins/docker image: plugins/docker
settings: settings:
@ -17,6 +23,8 @@ steps:
from_secret: docker_password from_secret: docker_password
repo: 97waterpolo/aoc-2021 repo: 97waterpolo/aoc-2021
dockerfile: AOC2021/Dockerfile dockerfile: AOC2021/Dockerfile
depends_on:
- test
- name: finish - name: finish
image: busybox image: busybox

@ -3,7 +3,7 @@ WORKDIR /app
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /src WORKDIR /src
COPY ["AOC2021.csproj", "AOC2021/"] COPY ["AOC2021/AOC2021.csproj", "AOC2021/"]
RUN dotnet restore "AOC2021/AOC2021.csproj" RUN dotnet restore "AOC2021/AOC2021.csproj"
COPY [".", "AOC2021/."] COPY [".", "AOC2021/."]
WORKDIR "/src/AOC2021" WORKDIR "/src/AOC2021"

Loading…
Cancel
Save