forked from digitalidentitey4d/homebrew-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
45 lines (39 loc) · 1.11 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
jobs:
- job: macOS
pool:
vmImage: macOS-10.14
steps:
- bash: |
set -e
sudo xcode-select --switch /Applications/Xcode_10.2.app/Contents/Developer
brew update-reset
ln -s "$PWD" "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle"
bundle install
displayName: Setup
- bash: brew style homebrew/bundle
displayName: Style
- bash: bundle exec rspec
displayName: Tests
env:
COVERALLS_REPO_TOKEN: $(coveralls.homebrewBundleApiToken)
- task: PublishCodeCoverageResults@1
displayName: Publish code coverage
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: $(Build.SourcesDirectory)/coverage/coverage.xml
reportDirectory: $(Build.SourcesDirectory)/coverage
failIfCoverageEmpty: true
- job: Linux
pool:
vmImage: ubuntu-16.04
steps:
- task: UseRubyVersion@0
inputs:
versionSpec: '>= 2.3'
- bash: |
set -e
gem install bundler
bundle install --retry=3 --jobs=4
displayName: Setup
- bash: bundle exec rspec
displayName: Tests