-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
42 lines (38 loc) · 1.26 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
pr:
autoCancel: true
drafts: true
branches:
include:
- dev
pool:
vmImage: ubuntu-latest
variables:
configuration: Release
stages:
- stage: Build
jobs:
- job: Build
steps:
- script: ls src/Tests
- script: dotnet build src/SynergyISP.sln -c Release
#condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
- stage: Test
dependsOn: Build
jobs:
- job: UnitTest
steps:
- script: dotnet test src/Tests/Domain/UnitTests/UnitTests.csproj -c Release
- script: dotnet test src/Tests/Application/UnitTests/UnitTests.csproj -c Release
#condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
- job: IntegrationTest
steps:
- script: cd src && dotnet test ./Tests/**/*IntegrationTests/*IntegrationTests.csproj -c Release
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
- job: UITest
steps:
- script: cd src && dotnet test ./Tests/**/*.UITests/*.UITests.csproj -c Release
#condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))