forked from Azure-Samples/azure-batch-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
59 lines (55 loc) · 1.49 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
51
52
53
54
55
56
57
58
59
# 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
trigger:
- master
jobs:
- job: 'PythonTest'
pool:
vmImage: 'vs2017-win2016'
strategy:
matrix:
Python27:
python.version: '2.7'
Python35:
python.version: '3.5'
Python36:
python.version: '3.6'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
- script: |
python -m pip install --upgrade setuptools
python -m pip install -r $(System.DefaultWorkingDirectory)/Python/Batch/requirements.txt
python -m pip install coveralls flake8 pytest pytest-cov requests_mock
python -m flake8 $(System.DefaultWorkingDirectory)/Python/Batch
displayName: 'Run lint tests'
- job: 'JavaTest'
pool:
vmImage: 'vs2017-win2016'
steps:
- task: Maven@3
inputs:
mavenPomFile: '$(System.DefaultWorkingDirectory)/Java/pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: false
testResultsFiles: '**/TEST-*.xml'
goals: 'package'
- job: 'DotNetTest'
pool:
vmImage: 'vs2017-win2016'
steps:
- task: DotNetCoreCLI@2
inputs:
command: 'restore'
projects: '**/*.csproj'
feedsToUse: 'select'
- task: DotNetCoreCLI@2
inputs:
command: 'build'
projects: '**/*.csproj'