-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
50 lines (42 loc) · 1.07 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
43
44
45
46
47
48
49
50
# Matriz de maquinas donde se va a ejecutar nuestras pruebas
strategy:
matrix:
linux:
imageName: 'ubuntu-16.04'
mac:
imageName: 'macos-10.13'
windows:
imageName: 'vs2017-win2016'
# Configuramos el pool con la imagen
pool:
vmImage: $(imageName)
# Variables que vamos a necesitar
variables:
solution: '**/*.sln'
testProject: '**/PruebasUnitarias.csproj'
buildConfiguration: 'Release'
netCoreVersion: '2.2.103'
# Pasos a ejecutar
steps:
# Instalar Nuget
- task: NuGetToolInstaller@0
# Instalar la version de NetCore que queremos
- task: DotNetCoreInstaller@0
inputs:
version: '$(netCoreVersion)'
# Ejecutar un 'nuget restore'
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
# Lanzamos el comando de compilacion
- task: DotNetCoreCLI@2
inputs:
command: build
projects: '$(solution)'
arguments: '--configuration $(buildConfiguration)'
# Lanzamos el comando de test
- task: DotNetCoreCLI@2
inputs:
command: test
projects: '$(testProject)'
arguments: '--configuration $(buildConfiguration)'