Browse Source

adding mono execution

pull/512/head
Anton Firszov 8 years ago
parent
commit
cf5b1acc6c
  1. 14
      appveyor.yml
  2. 11
      run-tests.ps1

14
appveyor.yml

@ -22,6 +22,20 @@ environment:
is_32bit: False
- target_framework: net471
is_32bit: True
- target_framework: mono
is_32bit: False
- target_framework: mono
is_32bit: True
install:
- ps: |
if ($env:target_framework -eq "mono") {
if ($env:is_32bit -eq "True") {
cinst mono --x86
} else {
cinst mono
}
}
before_build:
- git submodule -q update --init

11
run-tests.ps1

@ -13,7 +13,16 @@ if ( ($targetFramework -eq "netcoreapp2.0") -and ($env:CI -eq "True") -and ($is3
$testRunnerCmd = ".\tests\CodeCoverage\CodeCoverage.cmd"
}
elseif ($targetFramework -eq "mono") {
$testRunnerCmd = "Write-Host '**** placeholder for mono test execution ****'"
$testDllPath = "$PSScriptRoot\tests\ImageSharp.Tests\bin\Release\net462\SixLabors.ImageSharp.Tests.dll"
cd "$env:HOMEPATH\.nuget\packages\xunit.runner.console\2.3.1\tools\net452\"
if ($is32Bit -ne "True") {
$monoPath = "$env:PROGRAMFILES\Mono\bin\mono.exe"
}
else {
$monoPath = "${env:ProgramFiles(x86)}\Mono\bin\mono.exe"
}
$testRunnerCmd = '"$monoPath" .\xunit.console.exe $testDllPath'
}
else {
cd .\tests\ImageSharp.Tests

Loading…
Cancel
Save