-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/mavnn/Paket
- Loading branch information
Showing
14 changed files
with
174 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
integrationtests/Paket.IntegrationTests/UpdatePackageSpecs.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
module Paket.IntegrationTests.UpdatePackageSpecs | ||
|
||
open Fake | ||
open System | ||
open NUnit.Framework | ||
open FsUnit | ||
open System | ||
open System.IO | ||
open System.Diagnostics | ||
open Paket | ||
open Paket.Domain | ||
|
||
[<Test>] | ||
let ``#1178 update with Mircosoft.* filter``() = | ||
paket "update nuget Microsoft.* --filter" "i001178-update-with-regex" |> ignore | ||
let lockFile = LockFile.LoadFrom(Path.Combine(scenarioTempPath "i001178-update-with-regex","paket.lock")) | ||
lockFile.Groups.[Constants.MainDependencyGroup].Resolution.[PackageName "Castle.Windsor"].Version | ||
|> shouldEqual (SemVer.Parse "2.5.1") | ||
lockFile.Groups.[Constants.MainDependencyGroup].Resolution.[PackageName "NUnit"].Version | ||
|> shouldEqual (SemVer.Parse "2.6.1") | ||
lockFile.Groups.[Constants.MainDependencyGroup].Resolution.[PackageName "Microsoft.AspNet.WebApi.SelfHost"].Version | ||
|> shouldBeGreaterThan (SemVer.Parse "5.0.1") | ||
|
||
[<Test>] | ||
let ``#1178 update with [MN].* --filter``() = | ||
paket "update nuget [MN].* --filter" "i001178-update-with-regex" |> ignore | ||
let lockFile = LockFile.LoadFrom(Path.Combine(scenarioTempPath "i001178-update-with-regex","paket.lock")) | ||
lockFile.Groups.[Constants.MainDependencyGroup].Resolution.[PackageName "Castle.Windsor"].Version | ||
|> shouldEqual (SemVer.Parse "2.5.1") | ||
lockFile.Groups.[Constants.MainDependencyGroup].Resolution.[PackageName "NUnit"].Version | ||
|> shouldBeGreaterThan (SemVer.Parse "2.6.1") | ||
lockFile.Groups.[Constants.MainDependencyGroup].Resolution.[PackageName "Microsoft.AspNet.WebApi.SelfHost"].Version | ||
|> shouldBeGreaterThan (SemVer.Parse "5.0.1") |
5 changes: 5 additions & 0 deletions
5
integrationtests/scenarios/i001178-update-with-regex/before/paket.dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source https://nuget.org/api/v2 | ||
|
||
nuget Castle.Windsor | ||
nuget NUnit | ||
nuget Microsoft.AspNet.WebApi.SelfHost |
21 changes: 21 additions & 0 deletions
21
integrationtests/scenarios/i001178-update-with-regex/before/paket.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
NUGET | ||
remote: https://nuget.org/api/v2 | ||
specs: | ||
Castle.Core (3.3.3) | ||
Castle.Windsor (2.5.1) | ||
Castle.Core (>= 2.5.1) | ||
Microsoft.AspNet.WebApi.Client (5.2.3) | ||
Microsoft.Net.Http (>= 2.2.22) - framework: portable-wp80+win+net45+wp81+wpa81 | ||
Newtonsoft.Json (>= 6.0.4) - framework: portable-wp80+win+net45+wp81+wpa81, >= net45 | ||
Microsoft.AspNet.WebApi.Core (5.0.0) | ||
Microsoft.AspNet.WebApi.Client (>= 5.0.0) | ||
Microsoft.AspNet.WebApi.SelfHost (5.0.1) | ||
Microsoft.AspNet.WebApi.Core (>= 5.0.0 < 5.1) | ||
Microsoft.Bcl (1.1.10) - framework: portable-wp80+win+net45+wp81+wpa81 | ||
Microsoft.Bcl.Build (>= 1.0.14) | ||
Microsoft.Bcl.Build (1.0.21) - import_targets: false, framework: portable-wp80+win+net45+wp81+wpa81 | ||
Microsoft.Net.Http (2.2.29) - framework: portable-wp80+win+net45+wp81+wpa81 | ||
Microsoft.Bcl (>= 1.1.10) | ||
Microsoft.Bcl.Build (>= 1.0.14) | ||
Newtonsoft.Json (7.0.1) - framework: portable-wp80+win+net45+wp81+wpa81, >= net45 | ||
NUnit (2.6.1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.