2019-03-08 05:21:58 +01:00
|
|
|
image:
|
2019-03-08 20:29:14 +01:00
|
|
|
- Visual Studio 2017
|
2019-03-08 05:21:58 +01:00
|
|
|
- Ubuntu1804
|
2019-03-08 20:16:44 +01:00
|
|
|
|
2019-03-08 05:21:58 +01:00
|
|
|
environment:
|
|
|
|
APPVEYOR_YML_DISABLE_PS_LINUX: true
|
2019-03-08 20:16:44 +01:00
|
|
|
|
2019-03-08 05:21:58 +01:00
|
|
|
services:
|
|
|
|
- docker
|
2019-03-08 20:16:44 +01:00
|
|
|
|
2019-03-08 05:46:06 +01:00
|
|
|
stack: node 10
|
2019-03-08 20:16:44 +01:00
|
|
|
|
2019-03-12 17:36:32 +01:00
|
|
|
init:
|
|
|
|
- ps: Install-Product node 10
|
|
|
|
|
2019-03-08 05:37:34 +01:00
|
|
|
install:
|
|
|
|
- sh: npm i -g gulp
|
2019-03-11 03:30:32 +01:00
|
|
|
- ps: choco install cloc --no-progress
|
|
|
|
- ps: "cloc --include-lang C#,SQL,Razor,\"Bourne Shell\",PowerShell,HTML,CSS,Sass,JavaScript,TypeScript --vcs git"
|
2019-03-08 20:16:44 +01:00
|
|
|
|
2019-03-08 06:14:38 +01:00
|
|
|
before_build:
|
2019-03-08 06:47:30 +01:00
|
|
|
#- sh: dotnet restore
|
2019-03-11 03:30:32 +01:00
|
|
|
- ps: msbuild /t:restore
|
2019-03-08 20:16:44 +01:00
|
|
|
|
2019-03-08 05:21:58 +01:00
|
|
|
build_script:
|
2019-03-08 20:16:44 +01:00
|
|
|
- sh: chmod +x ./build-ci.sh
|
|
|
|
- sh: ./build-ci.sh
|
2019-03-11 03:35:41 +01:00
|
|
|
- ps: |
|
2019-03-11 03:32:29 +01:00
|
|
|
msbuild bitwarden-server.sln /p:Configuration=Debug /verbosity:minimal `
|
2019-03-11 03:21:57 +01:00
|
|
|
/logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
2019-03-11 03:35:41 +01:00
|
|
|
- ps: |
|
2019-03-11 03:21:57 +01:00
|
|
|
$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=""
|
2019-03-11 03:44:58 +01:00
|
|
|
Push-AppveyorArtifact .\swagger.json
|
2019-03-08 20:16:44 +01:00
|
|
|
|
2019-03-08 14:55:19 +01:00
|
|
|
after_build:
|
|
|
|
- sh: docker logout
|
2019-03-08 20:16:44 +01:00
|
|
|
|
2019-03-08 06:34:51 +01:00
|
|
|
test_script:
|
2019-03-08 06:47:30 +01:00
|
|
|
#- sh: dotnet test .\test\Core.Test\Core.Test.csproj --configuration Debug --no-build
|
2019-03-11 03:30:32 +01:00
|
|
|
- ps: dotnet test .\test\Core.Test\Core.Test.csproj --configuration Debug --no-build
|