1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-27 03:41:30 +01:00

build swagger.json

This commit is contained in:
Kyle Spearrin 2019-03-10 22:21:57 -04:00
parent 74529f665a
commit 200c1f02c4

View File

@ -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