forked from puppetlabs/pupperware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
64 lines (55 loc) · 1.57 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
# Don't run Azure when a branch is updated, only when a PR is updated.
# Prevents double builds when a PR is made from the main repo and not a fork.
trigger: none
pr:
autoCancel: true
branches:
include:
- '*'
pool:
# self-hosted agent on Windows 10 1709 environment
# includes newer Docker engine with LCOW enabled, new build of LCOW image
# includes Ruby 2.5, Go 1.10, Node.js 10.10, hadolint
name: Default
variables:
COMPOSE_PROJECT_NAME: pupperware
workspace:
clean: resources
steps:
- checkout: self # self represents the repo where the initial Pipelines YAML file was found
clean: true # whether to fetch clean each time
- powershell: |
. gem/ci/build.ps1
Write-HostDiagnostics
displayName: Diagnostic Host Information
timeoutInMinutes: 2
name: hostinfo
- powershell: |
bundle install --with test --path '.bundle/gems'
displayName: Fetch Dependencies
timeoutInMinutes: 1
name: fetch_deps
- powershell: |
. gem/ci/build.ps1
Initialize-TestEnv
displayName: Prepare Test Environment
name: test_prepare
- powershell: |
. gem/ci/build.ps1
Invoke-ContainerTest -Specs spec
displayName: Test $(COMPOSE_PROJECT_NAME)
timeoutInMinutes: 25
name: test
- task: PublishTestResults@2
displayName: Publish $(COMPOSE_PROJECT_NAME) test results
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'TEST-rspec.xml'
testRunTitle: $(COMPOSE_PROJECT_NAME) Test Results
condition: always()
- powershell: |
. gem/ci/build.ps1
Clear-BuildState
displayName: Build Cleanup
timeoutInMinutes: 4
condition: always()