Skip to content

Commit

Permalink
Merge pull request ofiwg#3028 from qwert182/ci-for-windows
Browse files Browse the repository at this point in the history
win/ci: testing via fabtests
  • Loading branch information
shefty authored Jun 5, 2017
2 parents 35c696d + eb6547d commit 0d2c993
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 15 deletions.
16 changes: 16 additions & 0 deletions .appveyor.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[cmdletbinding()] Param()

$ErrorActionPreference="Stop"


Write-Verbose "downloading NetworkDirect DDK.."
Invoke-WebRequest -Uri "https://download.microsoft.com/download/5/A/E/5AEA3C34-32A1-4A70-9622-F9734E92981F/NetworkDirect_DDK.zip" -OutFile "NetworkDirect_DDK.zip"
Write-Verbose "done"

Write-Verbose "extracting NetworkDirect DDK.."
$wd=$PWD.Path; & { Add-Type -A "System.IO.Compression.FileSystem"; [IO.Compression.ZipFile]::ExtractToDirectory("$wd\NetworkDirect_DDK.zip", "$wd"); }
Write-Verbose "done"

Write-Verbose "moving NetworkDirect headers.."
move NetDirect\include\* prov\netdir\NetDirect
Write-Verbose "done"
31 changes: 16 additions & 15 deletions .appveyor.yml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@ build:
project: libfabric.sln

configuration:
- Debug
- Release
- Debug
- Release

before_build:
- ps: Invoke-WebRequest -Uri "https://download.microsoft.com/download/5/A/E/5AEA3C34-32A1-4A70-9622-F9734E92981F/NetworkDirect_DDK.zip" -OutFile "NetworkDirect_DDK.zip"
- ps: '$wd=$PWD.Path; & { Add-Type -A "System.IO.Compression.FileSystem"; [IO.Compression.ZipFile]::ExtractToDirectory("$wd\NetworkDirect_DDK.zip", "$wd"); }'
- ps: mkdir -f prov\netdir\NetDirect
- ps: move "NetDirect\include\*" "prov\netdir\NetDirect"
- ps: >
$tool="v140";
$namespaces=@{ vs="http://schemas.microsoft.com/developer/msbuild/2003" };
Get-ChildItem "." -Filter "*.vcxproj" |
foreach {
$toolsets = Select-Xml -Path $_.FullName -XPath '/vs:Project/vs:PropertyGroup[@Label="Configuration"]/vs:PlatformToolset' -Namespace $namespaces;
foreach ($_ in $toolsets) {$_.Node.InnerText=$tool};
$toolsets[0].Node.OwnerDocument.Save($toolsets[0].Path);
}
- ps: .appveyor.ps1 -Verbose

after_build:
- set PATH=%CD%\x64\%CONFIGURATION%;%PATH%
- cd ..

before_test:
- git clone https://github.com/ofiwg/fabtests
- cd fabtests
- msbuild fabtests.sln

test_script:
- set PATH=%CD%\x64\%CONFIGURATION%;%PATH%
- scripts\runfabtests.cmd

0 comments on commit 0d2c993

Please sign in to comment.