Browse Source

update to run tests in release

Oren Novotny 9 years ago
parent
commit
2e544b2dde
3 changed files with 3 additions and 6 deletions
  1. 0 2
      Ix.NET/Source/NuGet.Config
  2. 1 1
      Ix.NET/Source/Tests/project.json
  3. 2 3
      Ix.NET/Source/build-new.ps1

+ 0 - 2
Ix.NET/Source/NuGet.Config

@@ -2,8 +2,6 @@
 <configuration>
   <packageSources>
     <clear />
-    <add key="myget.org aspnetrc2" value="https://www.myget.org/F/aspnetrc2/api/v3/index.json" />        
-    <add key="xunit" value="https://www.myget.org/F/xunit/api/v3/index.json" /> 
     <add key="Build Packages" value="https://www.myget.org/F/c037199d-41df-4567-b966-25ff65324688/api/v3/index.json" />
     <add key="NuGet.org" value="https://api.nuget.org/v3/index.json" />    
   </packageSources>

+ 1 - 1
Ix.NET/Source/Tests/project.json

@@ -27,7 +27,7 @@
   "testRunner": "xunit",
   "frameworks": {
     "netcoreapp1.0": {
-      "imports": [ "dotnet", "portable-net45+win8" ],
+      "imports": [ "dotnet", "dnxcore50", "portable-net45+win8" ],
       "buildOptions": {
         "define": [
           "HAS_AWAIT"

+ 2 - 3
Ix.NET/Source/build-new.ps1

@@ -28,8 +28,7 @@ $projects = gci $scriptPath -Directory `
   | Select -ExpandProperty FullName
 
 foreach ($project in $projects) {
-  dotnet build -c "$configuration" $project
-  dotnet build $project
+  dotnet build -c "$configuration" $project  
 }
 
 $nuspecDir = Join-Path $scriptPath "NuSpecs"
@@ -45,5 +44,5 @@ foreach ($nuspec in $nuspecs) {
 
 Write-Host "Running tests" -Foreground Green
 $testDirectory = Join-Path $scriptPath "Tests"  
-dotnet test $testDirectory 
+dotnet test $testDirectory -c $configuration