forked from hugoShaka/ansible-mailserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
79 lines (68 loc) · 1.93 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
jobs:
- job: Single
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
- task: Bash@3
displayName: 'Install ansible and molecule'
inputs:
targetType: 'inline'
script: |
pip3 install --user setuptools wheel
pip3 install --user -r molecule/requirements.txt
- task: Bash@3
displayName: 'Lint'
inputs:
targetType: 'inline'
script: |
export PATH=$HOME/.local/bin:$PATH
molecule lint
- task: Bash@3
displayName: 'Molecule test'
inputs:
targetType: 'inline'
script: |
export PATH=$HOME/.local/bin:$PATH
molecule test -s single
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: './molecule/single/junit-report.xml'
testRunTitle: 'Single server'
- job: Double
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
- task: Bash@3
displayName: 'Install ansible and molecule'
inputs:
targetType: 'inline'
script: |
pip3 install --user setuptools wheel
pip3 install --user -r molecule/requirements.txt
- task: Bash@3
displayName: 'Lint'
inputs:
targetType: 'inline'
script: |
export PATH=$HOME/.local/bin:$PATH
molecule lint
- task: Bash@3
displayName: 'Molecule test'
inputs:
targetType: 'inline'
script: |
export PATH=$HOME/.local/bin:$PATH
molecule test
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: './molecule/default/junit-report.xml'
testRunTitle: 'Dual server'