forked from macports/macports-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
41 lines (34 loc) · 1010 Bytes
/
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
trigger: none
jobs:
- job: Build
timeoutInMinutes: 0
strategy:
matrix:
mac-10.15-xcode12beta:
imageName: 'macOS-10.15'
MP_XCODE_APP: '/Applications/Xcode_12_beta.app'
mac-10.15:
imageName: 'macOS-10.15'
mac-10.14:
imageName: 'macOS-10.14'
pool:
vmImage: $(imageName)
steps:
- checkout: self
fetchDepth: 64
- script: |
if [ -n "$MP_XCODE_APP" ]; then
echo "Selecting custom Xcode at $MP_XCODE_APP"
sudo xcode-select --switch "$MP_XCODE_APP"
else
echo "Custom Xcode not specified"
fi
echo "Selected Xcode is $(xcode-select --print-path)"
displayName: 'Set custom Xcode version'
- script: ./_ci/bootstrap.sh
displayName: 'Run bootstrap script'
- script: |
unset CC && source /opt/local/share/macports/setupenv.bash
export PATH="/opt/mports/bin:${PWD}/../mpbb:$PATH" && hash -r
sudo env PASTE_URL="$PASTE_URL" ./runner
displayName: 'Test ports'