brew/azure-pipelines.yml

50 lines
1.6 KiB
YAML
Raw Normal View History

2018-09-13 09:16:57 +01:00
jobs:
- job: macOS
pool:
vmImage: macOS-10.13
2018-09-13 09:16:57 +01:00
steps:
- bash: |
set -e
sudo xcode-select --switch /Applications/Xcode_10.1.app/Contents/Developer
HOMEBREW_REPOSITORY="$(brew --repo)"
mv "$HOMEBREW_REPOSITORY/Library/Taps" "$PWD/Library"
sudo rm -rf "$HOMEBREW_REPOSITORY"
sudo ln -s "$PWD" "$HOMEBREW_REPOSITORY"
brew update-reset Library/Taps/homebrew/homebrew-core
2018-12-30 20:06:13 +00:00
brew test-bot
displayName: Run brew test-bot
2018-09-13 09:16:57 +01:00
env:
HOMEBREW_GITHUB_API_TOKEN: $(github.publicApiToken)
2018-12-30 20:06:13 +00:00
HOMEBREW_COVERALLS_REPO_TOKEN: $(coveralls.homebrewBrewApiToken)
- 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: true
2018-09-13 09:16:57 +01:00
- job: Linux
pool:
vmImage: ubuntu-16.04
steps:
- bash: docker-compose -f Dockerfile.test.yml run --rm -e HOMEBREW_GITHUB_API_TOKEN sut
displayName: Run brew test-bot
2018-09-13 09:16:57 +01:00
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