FunctionalCuid/appveyor.yml
2019-08-09 15:10:16 -05:00

18 lines
652 B
YAML

os: Visual Studio 2019
build_script:
- cmd: dotnet tool install --global paket
- cmd: dotnet restore FunctionalCuid.sln
- cmd: dotnet build -v n --configuration Release FunctionalCuid\FunctionalCuid.fsproj
- cmd: dotnet build -v n FunctionalCuid.Tests\FunctionalCuid.Tests.fsproj
- cmd: dotnet pack FunctionalCuid\FunctionalCuid.fsproj -o %CD%\artifacts\nupkg
artifacts:
- path: artifacts\nupkg\*.nupkg
test_script:
- ps: cd FunctionalCuid.Tests
- ps: dotnet run
- ps: $wc = New-Object 'System.Net.WebClient'
- ps: $wc.UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestResults.xml))