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

Update pull-request.yml for Azure Pipelines #16

Merged
merged 6 commits into from
Aug 8, 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
16 changes: 11 additions & 5 deletions .azure-pipelines/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: $(date:yy)$(DayOfYear)$(rev:.r)

trigger: none

pr:
- master
- milestones/*
- releases/*
- servicing/*

variables:
majorAndMinorVersion: '0.4'
revision: '$(Build.BuildNumber)'
Expand All @@ -15,8 +21,8 @@ jobs:
steps:
- template: templates/windows-build-and-unit-test.yml

- job: macOS
pool:
vmImage: macOS 10.13
steps:
- template: templates/macos-build-and-unit-test.yml
#- job: macOS
# pool:
# vmImage: macOS 10.13
# steps:
# - template: templates/macos-build-and-unit-test.yml
23 changes: 10 additions & 13 deletions .azure-pipelines/templates/macos-build-and-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ steps:
- script: Scripts/Mac/BuildGVFSForMac.sh $(configuration)
displayName: Build VFSForGit $(configuration)

- script: MirrorProvider/Scripts/Mac/Build.sh $(configuration)
displayName: Build MirrorProvider $(configuration)

- task: PublishTestResults@2
displayName: Publish test results
inputs:
Expand All @@ -22,14 +19,14 @@ steps:
publishRunAttachments: true
condition: succeededOrFailed()

- script: Scripts/Mac/CI/CreateBuildDrop.sh $(configuration) $(Build.ArtifactStagingDirectory)/Tests
displayName: Create functional test drop.
#- script: Scripts/Mac/CI/CreateBuildDrop.sh $(configuration) $(Build.ArtifactStagingDirectory)/Tests
# displayName: Create functional test drop.

- task: PublishBuildArtifacts@1
displayName: Publish functional test drop artifact.
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/Tests
artifactName: "FunctionalTests_$(platformFriendlyName)_$(configuration)"
parallel: true
parallelCount: 8
condition: succeededOrFailed()
#- task: PublishBuildArtifacts@1
# displayName: Publish functional test drop artifact.
# inputs:
# pathtoPublish: $(Build.ArtifactStagingDirectory)/Tests
# artifactName: "FunctionalTests_$(platformFriendlyName)_$(configuration)"
# parallel: true
# parallelCount: 8
# condition: succeededOrFailed()
43 changes: 20 additions & 23 deletions .azure-pipelines/templates/windows-build-and-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,26 @@ steps:
- script: $(Build.Repository.LocalPath)\Scripts\BuildGVFSForWindows.bat $(configuration) $(majorAndMinorVersion).$(revision)
displayName: Run VFSForGit build script ($(configuration))

- script: $(Build.Repository.LocalPath)\MirrorProvider\Scripts\Windows\Build.bat $(configuration)
displayName: Build MirrorProvider ($(configuration))

- script: $(Build.Repository.LocalPath)\Scripts\RunUnitTests.bat $(configuration)
displayName: Run unit tests

- task: PublishTestResults@2
displayName: Publish unit test results
inputs:
testRunner: NUnit
testResultsFiles: "**\\TestResult.xml"
searchFolder: $(System.DefaultWorkingDirectory)
testRunTitle: Windows $(configuration) Unit Tests
publishRunAttachments: true

- script: $(Build.Repository.LocalPath)\Scripts\CI\CreateBuildDrop.bat $(configuration) $(Build.ArtifactStagingDirectory)\Tests
displayName: Create functional test drop.

- task: PublishBuildArtifacts@1
displayName: Publish functional test drop artifact.
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)\Tests
artifactName: "FunctionalTests_$(platformFriendlyName)_$(configuration)"
parallel: true
parallelCount: 8
condition: succeededOrFailed()
#- task: PublishTestResults@2
# displayName: Publish unit test results
# inputs:
# testRunner: NUnit
# testResultsFiles: "**\\TestResult.xml"
# searchFolder: $(System.DefaultWorkingDirectory)
# testRunTitle: Windows $(configuration) Unit Tests
# publishRunAttachments: true

#- script: $(Build.Repository.LocalPath)\Scripts\CI\CreateBuildDrop.bat $(configuration) $(Build.ArtifactStagingDirectory)\Tests
# displayName: Create functional test drop.

#- task: PublishBuildArtifacts@1
# displayName: Publish functional test drop artifact.
# inputs:
# pathtoPublish: $(Build.ArtifactStagingDirectory)\Tests
# artifactName: "FunctionalTests_$(platformFriendlyName)_$(configuration)"
# parallel: true
# parallelCount: 8
# condition: succeededOrFailed()
14 changes: 2 additions & 12 deletions GVFS/GVFS.Common/GVFSPlatform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,6 @@ public string GVFSReadObjectHookExecutableName
get { return "GVFS.ReadObjectHook" + this.ExecutableExtension; }
}

public string GVFSVirtualFileSystemHookExecutableName
{
get { return "GVFS.VirtualFileSystemHook" + this.ExecutableExtension; }
}

public string GVFSPostIndexChangedHookExecutableName
{
get { return "GVFS.PostIndexChangedHook" + this.ExecutableExtension; }
}

public string MountExecutableName
{
get { return "GVFS.Mount" + this.ExecutableExtension; }
Expand All @@ -215,6 +205,6 @@ public UnderConstructionFlags(
public bool SupportsGVFSUpgrade { get; }
public bool SupportsGVFSConfig { get; }
public bool SupportsNuGetEncryption { get; }
}
}
}
}
}
8 changes: 0 additions & 8 deletions GVFS/GVFS.Installer.Windows/Setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#define ServiceUIDir BuildOutputDir + "\GVFS.Service.UI\bin\" + PlatformAndConfiguration
#define GVFSMountDir BuildOutputDir + "\GVFS.Mount.Windows\bin\" + PlatformAndConfiguration
#define ReadObjectDir BuildOutputDir + "\GVFS.ReadObjectHook.Windows\bin\" + PlatformAndConfiguration
#define VirtualFileSystemDir BuildOutputDir + "\GVFS.VirtualFileSystemHook.Windows\bin\" + PlatformAndConfiguration
#define PostIndexChangedDir BuildOutputDir + "\GVFS.PostIndexChangedHook.Windows\bin\" + PlatformAndConfiguration
#define GVFSUpgraderDir BuildOutputDir + "\GVFS.Upgrader\bin\" + PlatformAndConfiguration + "\net461"

#define MyAppName "GVFS"
Expand Down Expand Up @@ -68,12 +66,6 @@ Name: "full"; Description: "Full installation"; Flags: iscustom;
Type: files; Name: "{app}\ucrtbase.dll"

[Files]
; GitHooks Files
DestDir: "{app}"; Flags: ignoreversion; Source:"{#HooksDir}\GVFS.Hooks.pdb"
DestDir: "{app}"; Flags: ignoreversion; Source:"{#HooksDir}\GVFS.Hooks.exe"
DestDir: "{app}"; Flags: ignoreversion; Source:"{#HooksDir}\GVFS.Hooks.exe.config"
DestDir: "{app}"; Flags: ignoreversion; Source:"{#HooksLoaderDir}\GitHooksLoader.pdb"
DestDir: "{app}"; Flags: ignoreversion; Source:"{#HooksLoaderDir}\GitHooksLoader.exe"

; GVFS.Common Files
DestDir: "{app}"; Flags: ignoreversion; Source:"{#GVFSCommonDir}\git2.dll"
Expand Down
5 changes: 1 addition & 4 deletions GVFS/GVFS.Mount/GVFS.Mount.Windows.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,7 @@
<Error Condition="!Exists('..\..\..\packages\SQLitePCLRaw.lib.e_sqlite3.v110_xp.1.1.12\build\net35\SQLitePCLRaw.lib.e_sqlite3.v110_xp.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\packages\SQLitePCLRaw.lib.e_sqlite3.v110_xp.1.1.12\build\net35\SQLitePCLRaw.lib.e_sqlite3.v110_xp.targets'))" />
</Target>
<PropertyGroup>
<PostBuildEvent>xcopy /Y $(BuildOutputDir)\GVFS.ReadObjectHook.Windows\bin\$(Platform)\$(Configuration)\GVFS.ReadObjectHook.* $(TargetDir)
xcopy /Y $(BuildOutputDir)\GVFS.VirtualFileSystemHook.Windows\bin\$(Platform)\$(Configuration)\GVFS.VirtualFileSystemHook.* $(TargetDir)
xcopy /Y $(BuildOutputDir)\GVFS.PostIndexChangedHook.Windows\bin\$(Platform)\$(Configuration)\GVFS.PostIndexChangedHook.* $(TargetDir)
xcopy /Y $(BuildOutputDir)\GVFS.Hooks.Windows\bin\$(Platform)\$(Configuration)\GVFS.Hooks.* $(TargetDir)</PostBuildEvent>
<PostBuildEvent>xcopy /Y $(BuildOutputDir)\GVFS.ReadObjectHook.Windows\bin\$(Platform)\$(Configuration)\GVFS.ReadObjectHook.* $(TargetDir)</PostBuildEvent>
</PropertyGroup>
<Import Project="..\..\..\packages\SQLitePCLRaw.lib.e_sqlite3.linux.1.1.12\build\net35\SQLitePCLRaw.lib.e_sqlite3.linux.targets" Condition="Exists('..\..\..\packages\SQLitePCLRaw.lib.e_sqlite3.linux.1.1.12\build\net35\SQLitePCLRaw.lib.e_sqlite3.linux.targets')" />
<Import Project="..\..\..\packages\SQLitePCLRaw.lib.e_sqlite3.osx.1.1.12\build\net35\SQLitePCLRaw.lib.e_sqlite3.osx.targets" Condition="Exists('..\..\..\packages\SQLitePCLRaw.lib.e_sqlite3.osx.1.1.12\build\net35\SQLitePCLRaw.lib.e_sqlite3.osx.targets')" />
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,6 @@
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "267A836720EE9F27005E6B60"
BuildableName = "GVFS.VirtualFileSystemHook"
BlueprintName = "GVFS.VirtualFileSystemHook"
ReferencedContainer = "container:../GVFS.VirtualFileSystemHook/GVFS.VirtualFileSystemHook.Mac.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
Expand All @@ -34,84 +20,8 @@
ReferencedContainer = "container:../GVFS.ReadObjectHook/GVFS.ReadObjectHook.Mac.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "267A836720EE9F27005E6B60"
BuildableName = "GVFS.PostIndexChangedHook"
BlueprintName = "GVFS.PostIndexChangedHook"
ReferencedContainer = "container:../GVFS.PostIndexChangedHook/GVFS.PostIndexChangedHook.Mac.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "267A836720EE9F27005E6B60"
BuildableName = "GVFS.VirtualFileSystemHook"
BlueprintName = "GVFS.VirtualFileSystemHook"
ReferencedContainer = "container:../GVFS.VirtualFileSystemHook/GVFS.VirtualFileSystemHook.Mac.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES"
launchAutomaticallySubstyle = "2">
<PathRunnable
runnableDebuggingMode = "0"
FilePath = "/&lt;placeholder&gt;">
</PathRunnable>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "267A836720EE9F27005E6B60"
BuildableName = "GVFS.VirtualFileSystemHook"
BlueprintName = "GVFS.VirtualFileSystemHook"
ReferencedContainer = "container:../GVFS.VirtualFileSystemHook/GVFS.VirtualFileSystemHook.Mac.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "267A836720EE9F27005E6B60"
BuildableName = "GVFS.VirtualFileSystemHook"
BlueprintName = "GVFS.VirtualFileSystemHook"
ReferencedContainer = "container:../GVFS.VirtualFileSystemHook/GVFS.VirtualFileSystemHook.Mac.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
Expand Down
2 changes: 0 additions & 2 deletions GVFS/GVFS.SignFiles/GVFS.SignFiles.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@
</PropertyGroup>
<ItemGroup>
<FilesToSign Include="
$(BuildOutputDir)\GitHooksLoader\bin\$(Platform)\$(Configuration)\GitHooksLoader.exe;
$(BuildOutputDir)\GVFS.Common\bin\$(Platform)\$(Configuration)\netstandard2.0\GVFS.Common.dll;
$(BuildOutputDir)\GVFS.Hooks.Windows\bin\$(Platform)\$(Configuration)\GVFS.Hooks.exe;
$(BuildOutputDir)\GVFS.Mount.Windows\bin\$(Platform)\$(Configuration)\GVFS.Mount.exe;
$(BuildOutputDir)\GVFS.Platform.Windows\bin\$(Platform)\$(Configuration)\GVFS.Platform.Windows.dll;
$(BuildOutputDir)\GVFS.ReadObjectHook.Windows\bin\$(Platform)\$(Configuration)\GVFS.ReadObjectHook.exe;
Expand Down
6 changes: 1 addition & 5 deletions GVFS/GVFS/GVFS.Windows.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,7 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>xcopy /Y $(BuildOutputDir)\GVFS.ReadObjectHook.Windows\bin\$(Platform)\$(Configuration)\GVFS.ReadObjectHook.* $(TargetDir)
xcopy /Y $(BuildOutputDir)\GVFS.VirtualFileSystemHook.Windows\bin\$(Platform)\$(Configuration)\GVFS.VirtualFileSystemHook.* $(TargetDir)
xcopy /Y $(BuildOutputDir)\GVFS.PostIndexChangedHook.Windows\bin\$(Platform)\$(Configuration)\GVFS.PostIndexChangedHook.* $(TargetDir)
xcopy /Y $(BuildOutputDir)\GVFS.Hooks.Windows\bin\$(Platform)\$(Configuration)\GVFS.Hooks.* $(TargetDir)
xcopy /Y $(BuildOutputDir)\GitHooksLoader\bin\$(Platform)\$(Configuration)\GitHooksLoader.* $(TargetDir)</PostBuildEvent>
<PostBuildEvent>xcopy /Y $(BuildOutputDir)\GVFS.ReadObjectHook.Windows\bin\$(Platform)\$(Configuration)\GVFS.ReadObjectHook.* $(TargetDir)</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>
Expand Down
Binary file removed GitHooksLoader/Version.rc
Binary file not shown.
Binary file removed GitHooksLoader/resource.h
Binary file not shown.
8 changes: 0 additions & 8 deletions Scripts/RunFunctionalTests.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,15 @@ SET PATH=C:\Program Files\GVFS;C:\Program Files\Git\cmd;%PATH%
if not "%2"=="--test-gvfs-on-path" goto :startFunctionalTests

REM Force GVFS.FunctionalTests.exe to use the installed version of GVFS
del %VFS_OUTPUTDIR%\GVFS.FunctionalTests\bin\x64\%Configuration%\netcoreapp2.1\GitHooksLoader.exe
del %VFS_OUTPUTDIR%\GVFS.FunctionalTests\bin\x64\%Configuration%\netcoreapp2.1\GVFS.exe
del %VFS_OUTPUTDIR%\GVFS.FunctionalTests\bin\x64\%Configuration%\netcoreapp2.1\GVFS.Hooks.exe
del %VFS_OUTPUTDIR%\GVFS.FunctionalTests\bin\x64\%Configuration%\netcoreapp2.1\GVFS.ReadObjectHook.exe
del %VFS_OUTPUTDIR%\GVFS.FunctionalTests\bin\x64\%Configuration%\netcoreapp2.1\GVFS.VirtualFileSystemHook.exe
del %VFS_OUTPUTDIR%\GVFS.FunctionalTests\bin\x64\%Configuration%\netcoreapp2.1\GVFS.PostIndexChangedHook.exe
del %VFS_OUTPUTDIR%\GVFS.FunctionalTests\bin\x64\%Configuration%\netcoreapp2.1\GVFS.Mount.exe
del %VFS_OUTPUTDIR%\GVFS.FunctionalTests\bin\x64\%Configuration%\netcoreapp2.1\GVFS.Service.exe
del %VFS_OUTPUTDIR%\GVFS.FunctionalTests\bin\x64\%Configuration%\netcoreapp2.1\GVFS.Service.UI.exe

REM Same for GVFS.FunctionalTests.Windows.exe
del %VFS_OUTPUTDIR%\GVFS.FunctionalTests.Windows\bin\x64\%Configuration%\GitHooksLoader.exe
del %VFS_OUTPUTDIR%\GVFS.FunctionalTests.Windows\bin\x64\%Configuration%\GVFS.exe
del %VFS_OUTPUTDIR%\GVFS.FunctionalTests.Windows\bin\x64\%Configuration%\GVFS.Hooks.exe
del %VFS_OUTPUTDIR%\GVFS.FunctionalTests.Windows\bin\x64\%Configuration%\GVFS.ReadObjectHook.exe
del %VFS_OUTPUTDIR%\GVFS.FunctionalTests.Windows\bin\x64\%Configuration%\GVFS.VirtualFileSystemHook.exe
del %VFS_OUTPUTDIR%\GVFS.FunctionalTests.Windows\bin\x64\%Configuration%\GVFS.PostIndexChangedHook.exe
del %VFS_OUTPUTDIR%\GVFS.FunctionalTests.Windows\bin\x64\%Configuration%\GVFS.Mount.exe
del %VFS_OUTPUTDIR%\GVFS.FunctionalTests.Windows\bin\x64\%Configuration%\GVFS.Service.exe
del %VFS_OUTPUTDIR%\GVFS.FunctionalTests.Windows\bin\x64\%Configuration%\GVFS.Service.UI.exe
Expand Down