-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2151 from microsoft/develop
Merge develop to master for release 3.3.3
- Loading branch information
Showing
40 changed files
with
598 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
parameters: | ||
- name: platform | ||
type: string | ||
|
||
- name: modules | ||
type: object | ||
|
||
jobs: | ||
- ${{ each module in parameters.modules }}: | ||
- job: | ||
displayName: ${{ format('{0} {1}', parameters.platform, module) }} | ||
pool: | ||
vmImage: internal-macos-10.15 | ||
steps: | ||
- checkout: self | ||
submodules: recursive | ||
|
||
- task: Xcode@5 | ||
displayName: Analyze | ||
inputs: | ||
actions: analyze | ||
xcWorkspacePath: AppCenter.xcworkspace | ||
${{ if eq(parameters.platform, 'MacCatalyst') }}: | ||
scheme: '${{ module }} iOS Framework' | ||
destinationPlatformOption: macOS | ||
${{ if ne(parameters.platform, 'MacCatalyst') }}: | ||
scheme: '${{ module }} ${{ parameters.platform }} Framework' | ||
destinationPlatformOption: ${{ parameters.platform }} | ||
${{ if eq(parameters.platform, 'iOS') }}: | ||
destinationSimulators: 'iPhone 11' | ||
${{ if eq(parameters.platform, 'tvOS') }}: | ||
destinationSimulators: 'Apple TV' | ||
|
||
- task: Xcode@5 | ||
displayName: Test | ||
inputs: | ||
actions: test | ||
xcWorkspacePath: AppCenter.xcworkspace | ||
${{ if eq(parameters.platform, 'MacCatalyst') }}: | ||
scheme: '${{ module }} iOS Framework' | ||
destinationPlatformOption: macOS | ||
${{ if ne(parameters.platform, 'MacCatalyst') }}: | ||
scheme: '${{ module }} ${{ parameters.platform }} Framework' | ||
destinationPlatformOption: ${{ parameters.platform }} | ||
${{ if eq(parameters.platform, 'iOS') }}: | ||
destinationSimulators: 'iPhone 11' | ||
${{ if eq(parameters.platform, 'tvOS') }}: | ||
destinationSimulators: 'Apple TV' | ||
publishJUnitResults: true | ||
timeoutInMinutes: 10 | ||
|
||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Diagnostic Reports' | ||
inputs: | ||
PathtoPublish: /Users/runner/Library/Logs/DiagnosticReports | ||
ArtifactName: 'Test Diagnostic Reports' | ||
condition: failed() | ||
|
||
- bash: 'bash <(curl -s https://codecov.io/bash) -X gcov -cF ${{ parameters.platform }}' | ||
displayName: 'Upload Coverage Report to Codecov' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
pr: | ||
- master | ||
- develop | ||
- feature/* | ||
|
||
variables: | ||
Configuration: Debug | ||
SDK: | ||
|
||
jobs: | ||
- template: analyze-and-test-template.yml | ||
parameters: | ||
platform: iOS | ||
modules: [ AppCenter, AppCenterAnalytics, AppCenterCrashes, AppCenterDistribute, AppCenterPush ] | ||
|
||
- template: analyze-and-test-template.yml | ||
parameters: | ||
platform: macOS | ||
modules: [ AppCenter, AppCenterAnalytics, AppCenterCrashes, AppCenterPush ] | ||
|
||
- template: analyze-and-test-template.yml | ||
parameters: | ||
platform: tvOS | ||
modules: [ AppCenter, AppCenterAnalytics, AppCenterCrashes ] | ||
|
||
- template: analyze-and-test-template.yml | ||
parameters: | ||
platform: MacCatalyst | ||
modules: [ AppCenter, AppCenterAnalytics, AppCenterCrashes ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
trigger: | ||
- master | ||
- develop | ||
|
||
pr: | ||
- master | ||
- develop | ||
- feature/* | ||
|
||
pool: | ||
vmImage: internal-macos-10.15 | ||
|
||
variables: | ||
Configuration: Release | ||
SDK: | ||
|
||
# Xcode 11.3.1 version is the last one that has compatible bitcode with Xcode 11.0 (minimal supported). | ||
XCODE_PATH: '/Applications/Xcode_11.3.1.app/Contents/Developer' | ||
|
||
jobs: | ||
- job: | ||
displayName: Build SDK for All Platforms | ||
steps: | ||
- checkout: self | ||
submodules: recursive | ||
|
||
- bash: | | ||
version="$(Scripts/framework-version.sh)+$(git rev-parse --short $BUILD_SOURCEVERSION)" | ||
echo "Change version to $version" | ||
Scripts/framework-version.sh "$version" | ||
displayName: 'Update Version' | ||
condition: ne(variables['Build.SourceBranch'], 'refs/heads/master') | ||
- bash: 'sudo gem install jazzy --no-document' | ||
displayName: 'Install Jazzy' | ||
|
||
- task: Xcode@5 | ||
displayName: Build | ||
inputs: | ||
xcWorkspacePath: AppCenter.xcworkspace | ||
scheme: 'All Frameworks+Documentation' | ||
xcodeVersion: specifyPath | ||
xcodeDeveloperDir: '$(XCODE_PATH)' | ||
timeoutInMinutes: 15 | ||
|
||
- task: Bash@3 | ||
displayName: Archive | ||
inputs: | ||
targetType: filePath | ||
filePath: './Scripts/build-archive.sh' | ||
|
||
- task: CopyFiles@2 | ||
displayName: 'Copy Archives to Staging Directory' | ||
inputs: | ||
SourceFolder: './AppCenter-SDK-Apple' | ||
Contents: '**/AppCenter-SDK-Apple*.zip' | ||
TargetFolder: '$(Build.ArtifactStagingDirectory)' | ||
|
||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Artifacts' | ||
inputs: | ||
ArtifactName: Release | ||
|
||
- job: | ||
displayName: Version Information | ||
steps: | ||
- bash: | | ||
swift --version | ||
swift package describe | ||
displayName: 'Print Swift Package Information' | ||
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 | ||
displayName: 'Component Detection' | ||
inputs: | ||
failOnAlert: true | ||
|
||
- bash: | | ||
VERSION=$(Scripts/framework-version.sh) | ||
mkdir -p $(Build.ArtifactStagingDirectory)/Info | ||
echo $VERSION > $(Build.ArtifactStagingDirectory)/Info/VERSION | ||
echo $BUILD_SOURCEVERSION > $(Build.ArtifactStagingDirectory)/Info/COMMIT | ||
Scripts/get-release-notes.sh $VERSION > $(Build.ArtifactStagingDirectory)/Info/RELEASE.md | ||
displayName: 'Collect Version Information' | ||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Version Information' | ||
inputs: | ||
PathtoPublish: '$(Build.ArtifactStagingDirectory)/Info' | ||
ArtifactName: Info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
pr: | ||
- master | ||
- develop | ||
- feature/* | ||
|
||
pool: | ||
vmImage: internal-macos-10.15 | ||
|
||
variables: | ||
Configuration: Release | ||
SDK: | ||
|
||
jobs: | ||
- job: | ||
displayName: Puppet iOS | ||
steps: | ||
- checkout: self | ||
submodules: recursive | ||
|
||
- task: Xcode@5 | ||
displayName: 'Sasquatch iOS Puppet Archive' | ||
inputs: | ||
actions: archive | ||
xcWorkspacePath: AppCenter.xcworkspace | ||
scheme: SasquatchPuppet | ||
|
||
- job: | ||
displayName: Puppet Mac Catalyst | ||
steps: | ||
- checkout: self | ||
submodules: recursive | ||
|
||
- task: Xcode@5 | ||
displayName: 'Sasquatch Mac Catalyst Puppet Archive' | ||
inputs: | ||
actions: archive | ||
xcWorkspacePath: AppCenter.xcworkspace | ||
scheme: SasquatchPuppet | ||
destinationPlatformOption: macOS | ||
|
||
- job: | ||
displayName: Sasquatch iOS | ||
steps: | ||
- checkout: self | ||
submodules: recursive | ||
|
||
- task: Xcode@5 | ||
displayName: 'Sasquatch iOS Objective-C Archive' | ||
inputs: | ||
actions: archive | ||
xcWorkspacePath: AppCenter.xcworkspace | ||
scheme: SasquatchObjC | ||
|
||
- task: Xcode@5 | ||
displayName: 'Sasquatch iOS Swift Archive' | ||
inputs: | ||
actions: archive | ||
xcWorkspacePath: AppCenter.xcworkspace | ||
scheme: SasquatchSwift | ||
|
||
- job: | ||
displayName: Sasquatch macOS | ||
steps: | ||
- checkout: self | ||
submodules: recursive | ||
|
||
- task: Xcode@5 | ||
displayName: 'Sasquatch macOS Objective-C Archive' | ||
inputs: | ||
actions: archive | ||
xcWorkspacePath: AppCenter.xcworkspace | ||
scheme: SasquatchMacObjC | ||
|
||
- task: Xcode@5 | ||
displayName: 'Sasquatch macOS Swift Archive' | ||
inputs: | ||
actions: archive | ||
xcWorkspacePath: AppCenter.xcworkspace | ||
scheme: SasquatchMacSwift | ||
|
||
- job: | ||
displayName: Sasquatch tvOS | ||
steps: | ||
- checkout: self | ||
submodules: recursive | ||
|
||
- task: Xcode@5 | ||
displayName: 'Sasquatch tvOS Objective-C Archive' | ||
inputs: | ||
actions: archive | ||
xcWorkspacePath: AppCenter.xcworkspace | ||
scheme: SasquatchTVObjC | ||
|
||
- task: Xcode@5 | ||
displayName: 'Sasquatch tvOS Swift Archive' | ||
inputs: | ||
actions: archive | ||
xcWorkspacePath: AppCenter.xcworkspace | ||
scheme: SasquatchTVSwift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.