forked from osx-cross/homebrew-avr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
84 lines (73 loc) · 2.06 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
80
81
82
83
84
# 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
trigger:
- master
pr:
- master
variables:
HOMEBREW_NO_ANALYTICS: 1
HOMEBREW_NO_AUTO_UPDATE: 1
jobs:
- job: brew_test_bot
displayName: "Run brew test-bot"
pool:
vmImage: macOS-10.13
steps:
- bash: |
sudo xcode-select --switch /Applications/Xcode_10.1.app/Contents/Developer
brew update
HOMEBREW_TAP_DIR="/usr/local/Homebrew/Library/Taps/osx-cross/homebrew-avr"
mkdir -p "$HOMEBREW_TAP_DIR"
rm -rf "$HOMEBREW_TAP_DIR"
ln -s "$PWD" "$HOMEBREW_TAP_DIR"
brew test-bot avr-binutils
displayName: Run brew test-bot
- job: audit_test_build
displayName: "Audit, Build & Test"
pool:
vmImage: macOS-10.13
strategy:
maxParallel: 8
matrix:
binutils:
package: avr-binutils
avr-gcc:
package: avr-gcc
avr-gcc@4:
package: avr-gcc@4
avr-gcc@5:
package: avr-gcc@5
avr-gcc@6:
package: avr-gcc@6
avr-gcc@7:
package: avr-gcc@7
avarice:
package: avarice
steps:
- bash: |
sudo xcode-select --switch /Applications/Xcode_10.1.app/Contents/Developer
brew update
brew cleanup
displayName: Update & Cleanup brew
- bash: |
gem install bundler
displayName: Install Bundler for brew audit
- bash: |
brew tap osx-cross/avr
cd $(brew --repo)/Library/Taps/osx-cross/homebrew-avr
git checkout --detach
git fetch origin '+refs/heads/*:refs/heads/*'
git checkout $(System.PullRequest.SourceBranch)
displayName: Git checkout $(System.PullRequest.SourceBranch)
- bash: |
brew audit --strict $(package)
displayName: Audit $(package)
- bash: |
brew install $(package)
displayName: Build $(package)
timeoutInMinutes: 360
- bash: |
brew test $(package)
displayName: Test $(package)