-
Notifications
You must be signed in to change notification settings - Fork 6
/
.azure-pipelines.yml
37 lines (33 loc) · 1.03 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
# 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
# Ref: https://github.com/Homebrew/brew/blob/master/Library/Homebrew/dev-cmd/tap-new.rb
strategy:
matrix:
mojave:
imageName: 'macOS-10.14'
xcodeVersion: '10.2'
high_sierra:
imageName: 'macOS-10.13'
xcodeVersion: '10.1'
pool:
vmImage: $(imageName)
steps:
- bash: |
set -e
if [[ -n "$SYSTEM_PULLREQUEST_PULLREQUESTNUMBER" ]]; then
git fetch origin "master:master" "pull/$SYSTEM_PULLREQUEST_PULLREQUESTNUMBER/head:pr"
git checkout pr
fi
set -u
sudo xcode-select --switch /Applications/Xcode_$(xcodeVersion).app/Contents/Developer
tap="$(brew --repo)"/Library/Taps/"$BUILD_REPOSITORY_ID"
mkdir -p $(dirname "$tap")
sudo ln -s "$PWD" "$tap"
brew cask install xquartz
brew test-bot
displayName: 'Run brew test-bot'
env:
HOMEBREW_NO_ANALYTICS: 1
HOMEBREW_NO_AUTO_UPDATE: 1