Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 31198e2

Browse files
committed
Tweak the build
1 parent 7166eb0 commit 31198e2

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

appveyor.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
# scripts that run after cloning repository
1+
version: 1.0.{build}
22
install:
3-
- if "%APPVEYOR_REPO_NAME%" EQU "github/VisualStudio" set MASTER_BUILD=1
4-
- git submodule init
5-
- if not defined MASTER_BUILD git submodule deinit script
6-
- git submodule update
7-
- nuget restore submodules\akavache\Akavache.sln
8-
- nuget restore submodules\octokit.net\Octokit.sln
9-
- nuget restore submodules\reactiveui\ReactiveUI.sln
10-
- nuget restore submodules\Rothko\Rothko.sln
11-
- nuget restore GitHubVS.sln
12-
3+
- ps: >-
4+
$full_build = Test-Path env:GHFVS_KEY
5+
git submodule init
6+
if ($full_build) {
7+
$fileContent = "-----BEGIN RSA PRIVATE KEY-----`n"
8+
$fileContent += $env:GHFVS_KEY.Replace(' ', "`n")
9+
$fileContent += "`n-----END RSA PRIVATE KEY-----`n"
10+
Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent
11+
} else {
12+
git submodule deinit script
13+
}
14+
git submodule update
15+
nuget restore GitHubVS.sln
1316
build_script:
14-
- msbuild "GitHubVS.sln" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:Configuration=Release /p:DeployExtension=false /verbosity:minimal /p:VisualStudioVersion=14.0
15-
17+
- cmd: msbuild "GitHubVS.sln" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:Configuration=Release /p:DeployExtension=false /verbosity:minimal /p:VisualStudioVersion=14.0
1618
test_script:
17-
- '%xunit20%\xunit.console.x86 "src\UnitTests\bin\Release\UnitTests.dll" -appveyor'
18-
- nunit-console "src\TrackingCollectionTests\bin\Release\TrackingCollectionTests.dll" -framework:net-4.5 -exclude:Timings
19+
- ps: >-
20+
scripts\Run-Nunit.ps1 TrackingCollectionTests 180 Release
21+
scripts\Run-Xunit.ps1 UnitTests 180 Release

0 commit comments

Comments
 (0)