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

Test with Watchman #213

Merged
merged 2 commits into from
Nov 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .azure-pipelines/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,19 @@ jobs:
- checkout: none # Use the drop from macOS_Build_and_UnitTests job
- template: templates/macos-functional-test.yml

- job: macOS_FunctionalTests_watchman
variables:
platformFriendlyName: macOS
configuration: Release
timeoutInMinutes: 30
pool:
name: 'Hosted macOS'
dependsOn: macOS_Build_and_UnitTests
condition: succeeded()
steps:
- checkout: none # Use the drop from macOS_Build_and_UnitTests job
- template: templates/macos-functional-test-watchman.yml

- job: Windows_FunctionalTests
timeoutInMinutes: 30
variables:
Expand Down
60 changes: 60 additions & 0 deletions .azure-pipelines/templates/macos-functional-test-watchman.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
steps:

- task: DotNetCoreInstaller@0
displayName: Use .NET Core SDK 2.1.301
inputs:
packageType: sdk
version: '2.1.301'

- bash: rm -rf $(Build.BinariesDirectory)/FunctionalTests_$(platformFriendlyName)_$(configuration)/BuildOutput/Git/*
displayName: Clean previous Git installations

- bash: brew install watchman
displayName: Install watchman

- task: DownloadBuildArtifacts@0
displayName: Download functional test drop
inputs:
buildType: current
downloadType: specific
artifactName: FunctionalTests_$(platformFriendlyName)_$(configuration)
downloadPath: $(Build.BinariesDirectory)

- bash: |
chmod +x $(Build.BinariesDirectory)/FunctionalTests_$(platformFriendlyName)_$(configuration)/src/Scripts/Mac/*.sh
chmod +x $(Build.BinariesDirectory)/FunctionalTests_$(platformFriendlyName)_$(configuration)/Publish/*
displayName: Ensure tests assets are executable

- bash: $(Build.BinariesDirectory)/FunctionalTests_$(platformFriendlyName)_$(configuration)/src/Scripts/Mac/CleanupFunctionalTests.sh
displayName: Clean environment

- bash: $(Build.BinariesDirectory)/FunctionalTests_$(platformFriendlyName)_$(configuration)/src/Scripts/Mac/PrepFunctionalTests.sh
displayName: Prep functional tests

- bash: $(Build.BinariesDirectory)/FunctionalTests_$(platformFriendlyName)_$(configuration)/src/Scripts/Mac/RunFunctionalTests.sh $(configuration) --trace2-output=$(Build.ArtifactStagingDirectory)/trace2-event-mac.txt
displayName: Run functional tests

- task: PublishTestResults@2
displayName: Publish functional test results
inputs:
testRunner: NUnit
testResultsFiles: "**\\TestResult*.xml"
searchFolder: $(System.DefaultWorkingDirectory)
testRunTitle: macOS $(configuration) Functional Tests
publishRunAttachments: true
condition: succeededOrFailed()

- task: PublishBuildArtifacts@1
displayName: Publish Git trace2 log
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: trace2-event-mac.txt

- bash: $(Build.BinariesDirectory)/FunctionalTests_$(platformFriendlyName)_$(configuration)/src/Scripts/Mac/CleanupFunctionalTests.sh
displayName: Cleanup
condition: always()

- bash: sudo rm -rf $(Build.BinariesDirectory)/FunctionalTests_$(platformFriendlyName)_$(configuration)
displayName: Cleanup phase 2
condition: always()

2 changes: 1 addition & 1 deletion Scalar.Build/Scalar.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<PropertyGroup Label="Parameters">
<ScalarVersion>0.2.173.2</ScalarVersion>
<GitPackageVersion>2.20191025.1-sc</GitPackageVersion>
<GitPackageVersion>2.20191104.1-sc</GitPackageVersion>
</PropertyGroup>

<PropertyGroup Label="DefaultSettings">
Expand Down