azure-pipelines-yml: early exit on errors.

We don't want to silently ignore failing commands.

Also, while we're editing the `tap-new` generated `azure-pipelines.yml`
also add the changes missed here from #5600.
This commit is contained in:
Mike McQuaid 2019-01-24 20:36:03 +00:00
parent 40bfc39912
commit 382e0ed7b4
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
2 changed files with 5 additions and 2 deletions

View File

@ -55,10 +55,11 @@ module Homebrew
jobs:
- job: macOS
pool:
vmImage: xcode9-macos10.13
vmImage: macOS-10.13
steps:
- bash: |
sudo xcode-select --switch /Applications/Xcode_10.app/Contents/Developer
set -e
sudo xcode-select --switch /Applications/Xcode_10.1.app/Contents/Developer
brew update
HOMEBREW_TAP_DIR="/usr/local/Homebrew/Library/Taps/#{tap}"
mkdir -p "$HOMEBREW_TAP_DIR"

View File

@ -4,6 +4,7 @@ jobs:
vmImage: macOS-10.13
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"
@ -36,6 +37,7 @@ jobs:
vmImage: ubuntu-16.04
steps:
- bash: |
set -e
HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew
sudo mkdir -p /home/linuxbrew
sudo mv "$PWD" "$HOMEBREW_REPOSITORY"