Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up CI with Azure Pipelines #35

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
40 changes: 40 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Xcode
# Build, test, and archive an Xcode workspace on macOS.
# Add steps that install certificates, test, sign, and distribute an app, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/xcode

trigger:
- master

pool:
vmImage: 'macOS-10.13'

variables:
scheme: 'TokenUI'

steps:
- task: Xcode@5
displayName: 'Xcode debug build'
inputs:
actions: 'build'
scheme: 'TokenUIDemo'
sdk: 'iphoneos'
configuration: 'Release'
xcWorkspacePath: '**/*.xcodeproj/project.xcworkspace'
xcodeVersion: '10' # Options: 8, 9, 10, default, specifyPath


- task: Xcode@5
displayName: 'Running XCTest/XCUITest'
inputs:
actions: 'test'
scheme: '$(scheme)'
sdk: 'iphonesimulator'
configuration: 'Debug'
xcWorkspacePath: '**/*.xcodeproj/project.xcworkspace'
xcodeVersion: '10' # Options: 8, 9, 10, default, specifyPath
destinationSimulators: 'iPhone XS'
destinationTypeOption: 'simulators'
destinationPlatformOption: 'iOS'
useXcpretty: true
publishJUnitResults: 'build/reports/junit.xml'