Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

84 lines (82 sloc) 2.4 KB
# 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
jobs:
# Builds
- job: macOS
pool:
vmImage: 'macOS-10.14'
steps:
- task: Xcode@5
inputs:
actions: 'build'
scheme: 'SlackKit'
sdk: 'macosx'
configuration: 'Release'
xcWorkspacePath: 'SlackKit.xcodeproj/project.xcworkspace'
xcodeVersion: 'default'
- task: Xcode@5
inputs:
actions: 'test'
scheme: 'SlackKitTests'
sdk: 'macosx'
configuration: 'Debug'
xcWorkspacePath: 'SlackKit.xcodeproj/project.xcworkspace'
xcodeVersion: 'default'
- job: iOS
pool:
vmImage: 'macOS-10.14'
steps:
- task: Xcode@5
inputs:
actions: 'build'
scheme: 'SlackKit'
sdk: 'iphoneos'
configuration: 'Release'
xcWorkspacePath: 'SlackKit.xcodeproj/project.xcworkspace'
xcodeVersion: 'default'
- task: Xcode@5
inputs:
actions: 'test'
scheme: 'SlackKitTests'
sdk: 'iphonesimulator'
configuration: 'Debug'
xcWorkspacePath: 'SlackKit.xcodeproj/project.xcworkspace'
xcodeVersion: 'default'
- job: tvOS
pool:
vmImage: 'macOS-10.14'
steps:
- task: Xcode@5
inputs:
actions: 'build'
scheme: 'SlackKit'
sdk: 'appletvos'
configuration: 'Release'
xcWorkspacePath: 'SlackKit.xcodeproj/project.xcworkspace'
xcodeVersion: 'default'
- task: Xcode@5
inputs:
actions: 'test'
scheme: 'SlackKitTests'
sdk: 'appletvsimulator'
configuration: 'Debug'
xcWorkspacePath: 'SlackKit.xcodeproj/project.xcworkspace'
xcodeVersion: 'default'
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: |
# Install Swift dependencies
sudo apt-get install clang libicu-dev
# Install Swift 4.2.1
curl https://swift.org/builds/swift-5.0-release/ubuntu1604/swift-5.0-RELEASE/swift-5.0-RELEASE-ubuntu16.04.tar.gz > $(Build.SourcesDirectory)/swift-5.0-RELEASE-ubuntu16.04.tar.gz
tar xzf swift-5.0-RELEASE-ubuntu16.04.tar.gz -C $(Build.SourcesDirectory)
# Swift build
$(Build.SourcesDirectory)/swift-5.0-RELEASE-ubuntu16.04/usr/bin/swift build
# Swift test
$(Build.SourcesDirectory)/swift-5.0-RELEASE-ubuntu16.04/usr/bin/swift test
You can’t perform that action at this time.