Skip to content

Commit a21c8b0

Browse files
committed
Updated Appveyor for running redis tests
1 parent 46719bf commit a21c8b0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

appveyor.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ install:
1919
- curl -L -O -S -s http://downloads.northscale.com/memcached-1.4.5-amd64.zip
2020
- 7z x memcached-1.4.5-amd64.zip
2121
- ps: $MemCached = Start-Process memcached-amd64\memcached.exe -PassThru
22+
# redis server
23+
- curl -L -O -S -s https://github.com/ServiceStack/redis-windows/raw/master/downloads/redis64-2.8.17.zip
24+
- 7z x redis64-2.8.17.zip
25+
- ps: $Redis = Start-Process redis-server.exe redis.windows.conf -PassThru
2226
before_build:
2327
- which msbuild.exe
2428
- nuget restore NHibernate.Caches.Everything.sln
@@ -102,7 +106,7 @@ test_script:
102106
$TestsFailed = $FALSE
103107
#netFx tests
104108
If ($env:TESTS -eq 'net') {
105-
@('EnyimMemcached', 'Prevalence', 'RtMemoryCache', 'SysCache', 'SysCache2', 'CoreMemoryCache', 'CoreDistributedCache') | ForEach-Object {
109+
@('EnyimMemcached', 'Prevalence', 'RtMemoryCache', 'SysCache', 'SysCache2', 'CoreMemoryCache', 'CoreDistributedCache', 'StackExRedis') | ForEach-Object {
106110
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"
107111
If ($LASTEXITCODE -ne 0) {
108112
$TestsFailed = $TRUE
@@ -112,7 +116,7 @@ test_script:
112116
113117
#core tests
114118
If ($env:TESTS -eq 'core') {
115-
@('CoreMemoryCache', 'CoreDistributedCache') | ForEach-Object {
119+
@('CoreMemoryCache', 'CoreDistributedCache', 'StackExRedis') | ForEach-Object {
116120
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"
117121
If ($LASTEXITCODE -ne 0) {
118122
$TestsFailed = $TRUE
@@ -140,3 +144,4 @@ artifacts:
140144
name: Binaries
141145
on_finish:
142146
- ps: Stop-Process -Id $MemCached.Id
147+
- ps: Stop-Process -Id $Redis.Id

0 commit comments

Comments
 (0)