-
Notifications
You must be signed in to change notification settings - Fork 148
/
azure-pipelines.yml
41 lines (40 loc) · 1.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
trigger:
- master
pr:
- master
variables:
vmImage: 'macOS-10.14'
scheme: 'IBPCollectionViewCompositionalLayout'
sdk: 'iphoneos'
configuration: 'Release'
jobs:
- job: Build
pool:
vmImage: '$(vmImage)'
strategy:
matrix:
xcode11:
DEVELOPER_DIR: /Applications/Xcode_11.app
xcode10:
DEVELOPER_DIR: /Applications/Xcode_10.3.app
steps:
- task: Xcode@5
inputs:
actions: 'build'
scheme: '$(scheme)'
sdk: '$(sdk)'
configuration: '$(configuration)'
xcWorkspacePath: '$(scheme).xcworkspace'
displayName: 'Xcode'
- bash: |
set -ex
xcodebuild -version
pushd $(mktemp -d)
if [[ -z "$(System.PullRequest.SourceRepositoryURI)" ]]; then
echo "github \"kishikawakatsumi/IBPCollectionViewCompositionalLayout\" \"master\"" > Cartfile
else
echo "github \"$(System.PullRequest.SourceRepositoryURI)\" \"$(System.PullRequest.SourceBranch)\"" > Cartfile
fi
carthage update --verbose --no-use-binaries
popd
displayName: 'Carthage'