-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitbucket-pipelines.yml
More file actions
24 lines (23 loc) · 1.12 KB
/
Copy pathbitbucket-pipelines.yml
File metadata and controls
24 lines (23 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
image: mcr.microsoft.com/dotnet/sdk:5.0
pipelines:
pull-requests:
'**':
- step:
name: Build and Test
caches:
- dotnetcore
script:
- if [ "${BITBUCKET_PR_DESTINATION_BRANCH}" != "master" ]; then printf 'not a target branch we want to check'; exit; fi
- cd src
- dotnet restore ./Unicorn.Taf.Api/Unicorn.Taf.Api.csproj
- dotnet restore ./Unicorn.Taf.Core/Unicorn.Taf.Core.csproj
- dotnet restore ./Unicorn.Backend/Unicorn.Backend.csproj
- dotnet restore ./Unicorn.UI/Core/Unicorn.UI.Core.csproj
- dotnet restore ./Unicorn.UI/Mobile/Unicorn.UI.Mobile.csproj
- dotnet restore ./Unicorn.UI/Web/Unicorn.UI.Web.csproj
- dotnet restore ./Unicorn.UI/Win/Unicorn.UI.Win.csproj
- dotnet restore ./Unicorn.UnitTests/Unicorn.UnitTests.csproj
- dotnet build --no-restore --configuration CI
- dotnet test --no-build --configuration CI --framework net5.0 --test-adapter-path:. --logger:trx
artifacts:
- src/Unicorn.UnitTests/TestResults/*.trx