This repository has been archived by the owner on Feb 16, 2019. It is now read-only.
forked from Homebrew/homebrew-test-bot
-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
57 lines (53 loc) · 2.05 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
jobs:
- job: macOS
pool:
vmImage: macOS-10.13
steps:
- bash: |
set -e
sudo xcode-select --switch /Applications/Xcode_10.1.app/Contents/Developer
brew update-reset /usr/local/Homebrew
ln -s "$PWD" "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-test-bot"
brew test-bot
brew test-bot --ci-upload --dry-run
brew test-bot --ci-pr https://github.com/Homebrew/brew/pull/4170 --dry-run
brew test-bot --ci-pr https://github.com/Homebrew/brew/commit/dc96e6f73551fbadd0c2169c3a79c47a936f71ae --dry-run
displayName: Run brew test-bot
env:
HOMEBREW_GITHUB_API_TOKEN: $(github.publicApiToken)
HOMEBREW_COVERALLS_REPO_TOKEN: $(coveralls.homebrewTestBotApiToken)
- task: PublishTestResults@2
displayName: Publish test-bot test results
condition: succeededOrFailed()
inputs:
testRunner: JUnit
testResultsFiles: brew-test-bot.xml
- task: PublishCodeCoverageResults@1
displayName: Publish brew tests code coverage
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: $(Build.SourcesDirectory)/coverage/coverage.xml
reportDirectory: $(Build.SourcesDirectory)/coverage
failIfCoverageEmpty: false
- job: Linux
pool:
vmImage: ubuntu-16.04
steps:
- bash: |
set -e
HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew
sudo mkdir -p /home/linuxbrew
sudo git clone https://github.com/Homebrew/brew "$HOMEBREW_REPOSITORY"
sudo mkdir -p "$HOMEBREW_REPOSITORY/Library/Taps/homebrew"
sudo ln -s "$PWD" "$HOMEBREW_REPOSITORY/Library/Taps/homebrew/homebrew-test-bot"
sudo chown -R "$USER" "$HOMEBREW_REPOSITORY"
"$HOMEBREW_REPOSITORY/bin/brew" test-bot
displayName: brew test-bot
env:
HOMEBREW_GITHUB_API_TOKEN: $(github.publicApiToken)
- task: PublishTestResults@2
displayName: Publish test-bot test results
condition: succeededOrFailed()
inputs:
testRunner: JUnit
testResultsFiles: brew-test-bot.xml