-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
32 lines (26 loc) · 1.01 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
trigger:
branches:
include:
- master
paths:
include:
- src/*
pool:
vmImage: 'windows-latest'
variables:
- group: fraud-detection
- name: buildConfiguration
value: 'Release'
steps:
- script: 'net use X: \\filesharepublic.file.core.windows.net\data /u:filesharepublic $(filestorage.key)'
displayName: 'Map disk drive to Azure Files share folder'
- script: dotnet build src/machine-learning/FraudPredictionTrainer/FraudPredictionTrainer.csproj --configuration $(buildConfiguration)
displayName: 'Build Trainer Console App (dotnet build) $(buildConfiguration)'
- script: dotnet run --project src/machine-learning/FraudPredictionTrainer/FraudPredictionTrainer.csproj --configuration $(buildConfiguration)
displayName: 'Train ML model (dotnet run)'
- task: DotNetCoreCLI@2
displayName: 'Run Unit Tests using trained ML model'
inputs:
command: test
projects: 'src/machine-learning/FraudPrediction.Tests/FraudPrediction.Tests.csproj'
arguments: '--configuration $(buildConfiguration)'