Skip to content

Commit

Permalink
Ading appveyor builds to the project.
Browse files Browse the repository at this point in the history
  • Loading branch information
stimms committed Feb 26, 2016
1 parent ea26be9 commit 092b55e
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 83 deletions.
21 changes: 21 additions & 0 deletions ci_build.ps1
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,21 @@
#log the runtimes
dnvm list
dnvm install 1.0.0-rc1-update1 -r coreclr -a x86
dnvm install 1.0.0-rc1-update1 -r clr -a x86
dnvm install 1.0.0-rc1-update1 -r coreclr -a x64
dnvm install 1.0.0-rc1-update1 -r clr -a x64
dnvm list
dnvm use 1.0.0-rc1-update1 -a x64 -r coreclr
dnu feeds list
dnu restore

#run the build
& "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" src\GenFu.sln

#tests
dnvm use 1.0.0-rc1-update1 -a x64 -r coreclr
dnx -p tests\GenFu.Tests test -xml xunit-results.xml

# upload results to AppVeyor
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/xunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\xunit-results.xml))
2 changes: 1 addition & 1 deletion global.json
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,7 @@
{ {
"projects": [ "src", "test" ], "projects": [ "src", "test" ],
"sdk": { "sdk": {
"version": "1.0.0-rc1-final", "version": "1.0.0-rc1-update1",
"runtime": "coreclr" "runtime": "coreclr"
} }
} }
2 changes: 1 addition & 1 deletion tests/GenFu.Tests/project.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": { "dependencies": {
"GenFu": "", "GenFu": "",
"Microsoft.AspNet.TestHost": "1.0.0-rc1-final", "Microsoft.AspNet.TestHost": "1.0.0-rc1-final",
"xunit": "2.1.0-rc2-build3176", "xunit": "2.1.0",
"xunit.runner.dnx": "2.1.0-rc1-build204" "xunit.runner.dnx": "2.1.0-rc1-build204"
}, },


Expand Down
Loading

0 comments on commit 092b55e

Please sign in to comment.