Skip to content

Commit 96aff4d

Browse files
committed
Add -codedom.yml to avoid CI timeout
1 parent b9b6991 commit 96aff4d

File tree

3 files changed

+47
-2
lines changed

3 files changed

+47
-2
lines changed

appveyor-debug-codedom.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
version: '{branch}-{build}'
2+
image: Visual Studio 2017
3+
skip_tags: true
4+
configuration: Debug
5+
assembly_info:
6+
patch: true
7+
file: '**\*AssemblyInfo.cs'
8+
assembly_version: $(AssemblyBaseVersion).0
9+
assembly_file_version: $(AssemblyBaseVersion).{build}
10+
assembly_informational_version: $(PackageVersion)
11+
environment:
12+
XamarinMSBuildExtensionsPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild
13+
install:
14+
- cmd: >-
15+
cd .\build
16+
- ps: >-
17+
./SetBuildEnv.ps1
18+
19+
cd ..
20+
build_script:
21+
- ps: >-
22+
Write-Host "Configuration=${env:CONFIGURATION}"
23+
24+
cd ./build
25+
26+
./Build.ps1
27+
28+
if ( $LastExitCode -ne 0 )
29+
{
30+
Write-Error "Failed to build."
31+
exit 1
32+
}
33+
34+
cd ..
35+
test_script:
36+
- cmd: >-
37+
cd ./build
38+
39+
./RunUnitTests-CodeDOM.cmd

build/RunUnitTests-CodeDOM.cmd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
dotnet test %APPVEYOR_BUILD_FOLDER%/test/MsgPack.UnitTest.CodeDom/MsgPack.UnitTest.CodeDom.csproj
2+
if not %errorlevel% == 0 exit /b 1
3+
@rem WinRT related tests require developer license...
4+
@rem vstest.console /logger:Appveyor /InIsolation %APPVEYOR_BUILD_FOLDER%/test/MsgPack.UnitTest.WinRT/AppPackages/MsgPack.UnitTest.WinRT_1.1.0.0_AnyCPU_Debug_Test/MsgPack.UnitTest.WinRT_1.1.0.0_AnyCPU_Debug.appx
5+
@rem vstest.console /logger:Appveyor /InIsolation %APPVEYOR_BUILD_FOLDER%/test/MsgPack.UnitTest.BclExtensions.WinRT/AppPackages/MsgPack.UnitTest.BclExtensions.WinRT_1.1.0.0_AnyCPU_Debug_Test/MsgPack.UnitTest.BclExtensions.WinRT_1.1.0.0_AnyCPU_Debug.appx
6+
@rem vstest.console /logger:Appveyor /InIsolation %APPVEYOR_BUILD_FOLDER%/test/MsgPack.UnitTest.WinRT.WindowsPhone/AppPackages/MsgPack.UnitTest.WinRT.WindowsPhone_1.0.0.0_x86_Debug_Test/MsgPack.UnitTest.WinRT.WindowsPhone_1.0.0.0_x86_Debug.appx
7+
@rem UWP test with NUnit3 is not available in cli
8+
@rem Xamarin tests are not available in cli

build/RunUnitTests.cmd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ dotnet test %APPVEYOR_BUILD_FOLDER%/test/MsgPack.UnitTest/MsgPack.UnitTest.cspro
22
if not %errorlevel% == 0 exit /b 1
33
dotnet test %APPVEYOR_BUILD_FOLDER%/test/MsgPack.UnitTest.BclExtensions/MsgPack.UnitTest.BclExtensions.csproj
44
if not %errorlevel% == 0 exit /b 1
5-
dotnet test %APPVEYOR_BUILD_FOLDER%/test/MsgPack.UnitTest.CodeDom/MsgPack.UnitTest.CodeDom.csproj
6-
if not %errorlevel% == 0 exit /b 1
75
@rem WinRT related tests require developer license...
86
@rem vstest.console /logger:Appveyor /InIsolation %APPVEYOR_BUILD_FOLDER%/test/MsgPack.UnitTest.WinRT/AppPackages/MsgPack.UnitTest.WinRT_1.1.0.0_AnyCPU_Debug_Test/MsgPack.UnitTest.WinRT_1.1.0.0_AnyCPU_Debug.appx
97
@rem vstest.console /logger:Appveyor /InIsolation %APPVEYOR_BUILD_FOLDER%/test/MsgPack.UnitTest.BclExtensions.WinRT/AppPackages/MsgPack.UnitTest.BclExtensions.WinRT_1.1.0.0_AnyCPU_Debug_Test/MsgPack.UnitTest.BclExtensions.WinRT_1.1.0.0_AnyCPU_Debug.appx

0 commit comments

Comments
 (0)