-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
196 additions
and
223 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="NuProj" version="0.11.14-beta" /> | ||
<package id="vswhere" version="1.0.62" /> | ||
</packages> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,24 @@ | ||
# Copyright (C) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT license. See LICENSE.txt in the project root for license information. | ||
|
||
# Require .NET Framework | ||
FROM microsoft/windowsservercore | ||
FROM heaths/vssetup:1.8.24 | ||
SHELL ["powershell.exe", "-ExecutionPolicy", "Bypass", "-Command"] | ||
|
||
# Download and install Remote Debugger | ||
SHELL ["powershell.exe", "-ExecutionPolicy", "Bypass", "-Command"] | ||
RUN $ErrorActionPreference = 'Stop' ; \ | ||
$ProgressPreference = 'SilentlyContinue' ; \ | ||
$VerbosePreference = 'Continue' ; \ | ||
New-Item -Path C:\Downloads -Type Directory | Out-Null ; \ | ||
Invoke-WebRequest -Uri 'https://go.microsoft.com/fwlink/?LinkId=615470&clcid=0x409' -OutFile C:\Downloads\rtools_setup_x64.exe ; \ | ||
Start-Process -Wait -FilePath C:\Downloads\rtools_setup_x64.exe -ArgumentList '-q' | ||
Invoke-WebRequest -Uri 'https://go.microsoft.com/fwlink/?LinkId=746570&clcid=0x409' -OutFile C:\Downloads\vs_remotetools.exe ; \ | ||
Start-Process -Wait -FilePath C:\Downloads\vs_remotetools.exe -ArgumentList '-q' ; \ | ||
Remove-Item -Path C:\Downloads\vs_remotetools.exe | ||
|
||
# Configure Remote Debugger | ||
EXPOSE 3702 4020 4021 | ||
RUN $ErrorActionPreference = 'Stop' ; \ | ||
$VerbosePreference = 'Continue' ; \ | ||
Start-Process -Wait -FilePath 'C:\Program Files\Microsoft Visual Studio 14.0\Common7\IDE\Remote Debugger\x64\msvsmon.exe' -ArgumentList '/prepcomputer', '/private', '/quiet' | ||
|
||
# Download and register current query APIs | ||
ENV API_VERSION="1.8.24" | ||
RUN $ErrorActionPreference = 'Stop' ; \ | ||
$VerbosePreference = 'Continue' ; \ | ||
Invoke-WebRequest -Uri "https://www.nuget.org/api/v2/package/Microsoft.VisualStudio.Setup.Configuration.Native/${env:API_VERSION}" -OutFile C:\Downloads\Microsoft.VisualStudio.Setup.Configuration.Native.zip ; \ | ||
Expand-Archive -Path C:\Downloads\Microsoft.VisualStudio.Setup.Configuration.Native.zip -DestinationPath C:\Downloads\Microsoft.VisualStudio.Setup.Configuration.Native ; \ | ||
C:\Windows\System32\regsvr32.exe /s C:\Downloads\Microsoft.VisualStudio.Setup.Configuration.Native\tools\x64\Microsoft.VisualStudio.Setup.Configuration.Native.dll ; \ | ||
C:\Windows\SysWOW64\regsvr32.exe /s C:\Downloads\Microsoft.VisualStudio.Setup.Configuration.Native\tools\x86\Microsoft.VisualStudio.Setup.Configuration.Native.dll | ||
|
||
# Install latest version of Pester for integration testing | ||
EXPOSE 3702 4022 4023 | ||
RUN $ErrorActionPreference = 'Stop' ; \ | ||
$VerbosePreference = 'Continue' ; \ | ||
Install-PackageProvider -Name nuget -MinimumVersion 2.8.5.201 -Force ; \ | ||
Install-Module -Name Pester -Scope CurrentUser -SkipPublisherCheck -Force | ||
Start-Process -Wait -FilePath 'C:\Program Files\Microsoft Visual Studio 15.0\Common7\IDE\Remote Debugger\x64\msvsmon.exe' -ArgumentList '/prepcomputer', '/private', '/quiet' | ||
|
||
# Start Remote Debugger if no other command is passed to PowerShell | ||
ENTRYPOINT ["powershell.exe", "-ExecutionPolicy", "Unrestricted"] | ||
CMD ["-NoExit", "-Command", "& 'C:\\Program Files\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Remote Debugger\\x64\\msvsmon.exe' /silent /noauth /anyuser"] | ||
CMD ["-NoExit", "-Command", "& 'C:\\Program Files\\Microsoft Visual Studio 15.0\\Common7\\IDE\\Remote Debugger\\x64\\msvsmon.exe' /silent /noauth /anyuser"] |
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 @@ | ||
[Rr]esults.xml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright (C) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT license. See LICENSE.txt in the project root for license information. | ||
|
||
# Would prefer to only use "image" in docker-compose.yml, but AppVeyor version of docker-compose fails | ||
# stating that a "Dockerfile" in the current directory does not exist. | ||
FROM heaths/vssetup:1.8.24 |
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,12 @@ | ||
# Copyright (C) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT license. See LICENSE.txt in the project root for license information. | ||
|
||
version: "2.1" | ||
services: | ||
test: | ||
# Need to override build context since AppVeyor version of docker-compose fails with just "image". | ||
build: . | ||
extends: | ||
file: ../docker-compose.yml | ||
service: test | ||
command: -c Invoke-Pester C:\Tests -EnableExit -OutputFile C:\Tests\Results.xml -OutputFormat NUnitXml |
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
# Copyright (C) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT license. See LICENSE.txt in the project root for license information. | ||
|
||
version: "2.1" | ||
services: | ||
test: | ||
build: . | ||
volumes: | ||
- ../bin/${CONFIGURATION:-Debug}:C:/bin:ro | ||
- ./Instances:C:/ProgramData/Microsoft/VisualStudio/Packages/_Instances:ro | ||
- ./Tests:C:/Tests | ||
- C:/VS/Community | ||
- C:/VS/Professional | ||
- C:/VS/Enterprise | ||
- C:/BuildTools | ||
network_mode: nat | ||
expose: | ||
- "3702/udp" | ||
- "4022-4023" |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,11 +1,6 @@ | ||
@echo off | ||
@if not defined _echo echo off | ||
|
||
REM Copyright (C) Microsoft Corporation. All rights reserved. | ||
REM Licensed under the MIT license. See LICENSE.txt in the project root for license information. | ||
|
||
setlocal | ||
|
||
set script=%~nx0 | ||
set noargs=1 | ||
|
||
call %~dp0run.cmd %* -- -c Invoke-Pester C:\Tests -EnableExit | ||
powershell.exe -NoLogo -ExecutionPolicy Bypass -Command "%~dp0\test.ps1" %* |
Oops, something went wrong.