Skip to content

Commit

Permalink
Merge pull request ra1028#68 from ra1028/azure-pipelines
Browse files Browse the repository at this point in the history
Set up CI with Azure Pipelines
  • Loading branch information
ra1028 authored May 9, 2019
2 parents 1fad2be + dac9781 commit 04d7379
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 52 deletions.
52 changes: 0 additions & 52 deletions .travis.yml

This file was deleted.

70 changes: 70 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
trigger:
- master

jobs:

- job: linux
pool:
vmImage: 'Ubuntu 16.04'
strategy:
maxParallel: 10
matrix:
swift4_2:
containerImage: swift:4.2
swift5_0:
containerImage: swift:5.0
container: $[ variables['containerImage'] ]
steps:
- script: |
swift build
swift test
displayName: swift test on linux
- job: macOS
pool:
vmImage: 'macOS 10.14'
strategy:
maxParallel: 10
matrix:
xcode10_1:
DEVELOPER_DIR: /Applications/Xcode_10.1.app
xcode10_2:
DEVELOPER_DIR: /Applications/Xcode_10.2.app
steps:
- script: |
swift build
swift test
displayName: swift test on macOS
condition: succeededOrFailed()
- script: xcodebuild -version
displayName: xcodebuild -version
condition: succeededOrFailed()
- script: |
set -o pipefail &&
xcodebuild build-for-testing test-without-building -scheme DifferenceKit -configuration Release ENABLE_TESTABILITY=YES |
xcpretty -c -r junit -o build/reports/xcodebuild-macOS.xml
displayName: xcodebuild test maxOS
condition: succeededOrFailed()
- script: |
set -o pipefail &&
xcodebuild build-for-testing test-without-building -scheme DifferenceKit -configuration Release -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone X' ENABLE_TESTABILITY=YES |
xcpretty -c -r junit -o build/reports/xcodebuild-iOS.xml
displayName: xcodebuild test iOS
condition: succeededOrFailed()
- script: |
set -o pipefail &&
xcodebuild build-for-testing test-without-building -scheme DifferenceKit -configuration Release -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV' ENABLE_TESTABILITY=YES |
xcpretty -c -r junit -o build/reports/xcodebuild-tvOS.xml
displayName: xcodebuild test tvOS
condition: succeededOrFailed()
- script: |
set -o pipefail &&
xcodebuild build -scheme DifferenceKit -configuration Release -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 4 - 40mm' ENABLE_TESTABILITY=YES |
xcpretty -c
displayName: xcodebuild test watchOS
condition: succeededOrFailed()
- task: PublishTestResults@2
inputs:
testRunner: JUnit
testResultsFiles: build/reports/**
condition: succeededOrFailed()

0 comments on commit 04d7379

Please sign in to comment.