Skip to content

Commit 6d94035

Browse files
Separate net tests and core tests.
1 parent 0447a4e commit 6d94035

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

appveyor.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ environment:
66
global:
77
netTargetFx: net461
88
coreTargetFx: netcoreapp2.0
9+
matrix:
10+
- tests: net
11+
- tests: core
912
install:
1013
# memcache server
1114
- curl -L -O -S -s http://downloads.northscale.com/memcached-1.4.5-amd64.zip
@@ -21,13 +24,17 @@ test_script:
2124
- ps: >-
2225
Invoke-Command -ScriptBlock {
2326
#netFx tests
24-
@('EnyimMemcached', 'Prevalence', 'RtMemoryCache', 'SysCache', 'SysCache2', 'CoreMemoryCache') | ForEach-Object {
25-
nunit3-console (Join-Path $env:APPVEYOR_BUILD_FOLDER "$_\NHibernate.Caches.$_.Tests\bin\$env:CONFIGURATION\$env:NETTARGETFX\NHibernate.Caches.$_.Tests.dll") "--result=$_-NetTestResult.xml;format=AppVeyor"
27+
If ($env:TESTS -eq 'net') {
28+
@('EnyimMemcached', 'Prevalence', 'RtMemoryCache', 'SysCache', 'SysCache2', 'CoreMemoryCache') | ForEach-Object {
29+
nunit3-console (Join-Path $env:APPVEYOR_BUILD_FOLDER "$_\NHibernate.Caches.$_.Tests\bin\$env:CONFIGURATION\$env:NETTARGETFX\NHibernate.Caches.$_.Tests.dll") "--result=$_-NetTestResult.xml;format=AppVeyor"
30+
}
2631
}
2732
2833
#core tests
29-
@('CoreMemoryCache') | ForEach-Object {
30-
dotnet (Join-Path $env:APPVEYOR_BUILD_FOLDER "$_\NHibernate.Caches.$_.Tests\bin\$env:CONFIGURATION\$env:CORETARGETFX\NHibernate.Caches.$_.Tests.dll") --labels=before --nocolor "--result=$_-CoreTestResult.xml"
34+
If ($env:TESTS -eq 'core') {
35+
@('CoreMemoryCache') | ForEach-Object {
36+
dotnet (Join-Path $env:APPVEYOR_BUILD_FOLDER "$_\NHibernate.Caches.$_.Tests\bin\$env:CONFIGURATION\$env:CORETARGETFX\NHibernate.Caches.$_.Tests.dll") --labels=before --nocolor "--result=$_-CoreTestResult.xml"
37+
}
3138
}
3239
}
3340
after_test:

0 commit comments

Comments
 (0)