forked from sjackman/linuxbrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
59 lines (54 loc) · 2 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
jobs:
- job: BuildLinuxbrewCoreBottles
timeoutInMinutes: 360
pool:
vmImage: 'ubuntu-16.04'
container:
image: linuxbrew/brew:latest
steps:
- script: printenv
displayName: Azure printenv
- bash: |
mkdir -p /tmp/bottles
cd /tmp/bottles
umask 022
displayName: Setup /tmp/bottles
- bash: |
git config --global user.name LinuxbrewTestBot
git config --global user.email [email protected]
cd /home/linuxbrew/.linuxbrew/Homebrew
sudo git fetch origin --tags
sudo git reset --hard origin/master
displayName: Setup Homebrew
- bash: |
sudo rm -rf /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core
sudo cp -a $(Build.Repository.LocalPath) /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core
displayName: Copy homebrew-core
- bash: |
sudo /home/linuxbrew/.linuxbrew/bin/brew tap linuxbrew/extra
sudo /home/linuxbrew/.linuxbrew/bin/brew tap linuxbrew/xorg
sudo /home/linuxbrew/.linuxbrew/bin/brew tap homebrew/homebrew-test-bot
cd /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core
git checkout -b test
git fetch origin "master:master" "pull/$SYSTEM_PULLREQUEST_PULLREQUESTNUMBER/head:pr"
git checkout pr
cd /tmp/bottles
sudo -E /home/linuxbrew/.linuxbrew/bin/brew test-bot --tap=homebrew/core --bintray-org=linuxbrew --git-name=LinuxbrewTestBot [email protected] --keep-old
displayName: Run test-bot
continueOnError: true
env:
HOMEBREW_DEVELOPER: 1
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_VERBOSE: 1
HOMEBREW_VERBOSE_USING_DOTS: 1
- bash: |
cd /tmp/bottles
cp *.bottle.* $(Build.ArtifactStagingDirectory)
displayName: Copy json & bottle files
continueOnError: true
- task: PublishPipelineArtifact@0
inputs:
artifactName: bottle-linux
targetPath: $(Build.ArtifactStagingDirectory)
displayName: Publish bottle-linux
continueOnError: true