Skip to content

Commit

Permalink
appvejor test 1
Browse files Browse the repository at this point in the history
  • Loading branch information
lexarchik committed Sep 12, 2019
1 parent a47882f commit 0ad83c8
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 3 deletions.
17 changes: 17 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 5.0.{build}
image: Visual Studio 2017
cache:
- packages
build_script:
- ps: ./buildAndPack.ps1
test_script:
- ps: ./test.ps1
artifacts:
- path: nuget/*.nupkg
name: nuget_packages
deploy:
- provider: GitHub
auth_token:
secure: OVLvwbpNQ/EHiyh7oM3L0QnBNJReDdKmnns1qo5eXDg0LsKzOil914pupoqV1al7
artifact: nuget_packages
draft: true
9 changes: 8 additions & 1 deletion pack.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@
$mainFolder = Resolve-Path (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)
$paketExe = "$mainFolder\.paket\paket.exe"

& "$paketExe" pack "$mainFolder\nuget"
if (Test-Path env:appveyor_build_version)
{
& "$paketExe" pack "$mainFolder\nuget" --version $env:appveyor_build_version
}
else
{
& "$paketExe" pack "$mainFolder\nuget"
}
1 change: 0 additions & 1 deletion paket.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ nuget System.Resources.ResourceManager 4.3.0
group Test
source https://nuget.org/api/v2
framework: netcoreapp2.1
storage: none

nuget NUnit >= 3.10 < 4.0
nuget NUnit3TestAdapter >= 3.10 < 4.0
Expand Down
1 change: 0 additions & 1 deletion paket.lock
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ NUGET
System.Runtime (>= 4.3) - restriction: || (&& (== net472) (< net45)) (== netstandard2.0)

GROUP Test
STORAGE: NONE
RESTRICTION: == netcoreapp2.1
NUGET
remote: https://www.nuget.org/api/v2
Expand Down
1 change: 1 addition & 0 deletions test.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
& dotnet test

0 comments on commit 0ad83c8

Please sign in to comment.