From 200c1f02c4df3b9501fe2210d2de4ff879fdd778 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sun, 10 Mar 2019 22:21:57 -0400 Subject: [PATCH] build swagger.json --- appveyor.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 54ce64362c..54723017b1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -22,8 +22,17 @@ before_build: build_script: - sh: chmod +x ./build-ci.sh - sh: ./build-ci.sh -#- sh: ASPNETCORE_ENVIRONMENT=Production && swaggerGen=true && dotnet swagger tofile --output swagger.json --host api.bitwarden.com --format Indented bin/Debug/netcoreapp2.1/Api.dll public -- cmd: msbuild bitwarden-server.sln /p:Configuration=Debug /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" +- cmd: >- + msbuild bitwarden-server.sln /p:Configuration=Debug /verbosity:minimal ^ + /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" +- ps: >- + $env:swaggerGen="true" + $env:ASPNETCORE_ENVIRONMENT="Production" + cd .\src\Api; dotnet swagger tofile --output ..\..\swagger.json --host api.bitwarden.com --format Indented ` + .\bin\Debug\netcoreapp2.1\Api.dll public + cd ..\.. + $env:ASPNETCORE_ENVIRONMENT="" + $env:swaggerGen="" after_build: - sh: docker logout