forked from alex-harvey-z3q/bash_placebo
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathazure-pipelines.yaml
More file actions
34 lines (28 loc) · 767 Bytes
/
azure-pipelines.yaml
File metadata and controls
34 lines (28 loc) · 767 Bytes
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
trigger:
- master
pr:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UseRubyVersion@0
displayName: 'Setting Ruby Version'
inputs:
versionSpec: '>= 2.4'
addToPath: true
- script: |
sudo curl -o /usr/local/bin/shunit2 \
https://raw.githubusercontent.com/kward/shunit2/master/shunit2
gem install bashcov
gem install simplecov-cobertura
displayName: 'Installing Dependencies'
- script: |
bashcov --skip-uncovered test/placebo.sh
displayName: 'Running Unit Test'
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage'
condition: succeededOrFailed()
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: $(Build.SourcesDirectory)/coverage/coverage.xml
failIfCoverageEmpty: true