2019-03-08 05:21:58 +01:00
|
|
|
image:
|
|
|
|
- Visual Studio 2017
|
|
|
|
- Ubuntu1804
|
|
|
|
environment:
|
|
|
|
APPVEYOR_YML_DISABLE_PS_LINUX: true
|
|
|
|
services:
|
|
|
|
- docker
|
2019-03-08 05:46:06 +01:00
|
|
|
stack: node 10
|
2019-03-08 05:37:34 +01:00
|
|
|
install:
|
|
|
|
- sh: npm i -g gulp
|
2019-03-08 14:55:19 +01:00
|
|
|
- sh: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
|
2019-03-08 06:17:58 +01:00
|
|
|
- cmd: choco install cloc --no-progress
|
|
|
|
- cmd: "cloc --include-lang C#,SQL,Razor,\"Bourne Shell\",PowerShell,HTML,CSS,Sass,JavaScript,TypeScript --vcs git"
|
2019-03-08 06:14:38 +01:00
|
|
|
before_build:
|
2019-03-08 06:47:30 +01:00
|
|
|
#- sh: dotnet restore
|
2019-03-08 06:14:38 +01:00
|
|
|
- cmd: msbuild /t:restore
|
2019-03-08 05:21:58 +01:00
|
|
|
build_script:
|
2019-03-08 06:47:30 +01:00
|
|
|
#- dotnet build --configuration Debug
|
2019-03-08 05:37:34 +01:00
|
|
|
- sh: chmod +x ./build.sh
|
|
|
|
- sh: ./build.sh
|
|
|
|
- sh: ./build.sh tag dev
|
|
|
|
- sh: docker images
|
2019-03-08 14:55:19 +01:00
|
|
|
- sh: ./build.sh push dev
|
2019-03-08 06:41:24 +01:00
|
|
|
- cmd: msbuild bitwarden-server.sln /p:Configuration=Debug /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
2019-03-08 14:55:19 +01:00
|
|
|
after_build:
|
|
|
|
- sh: docker logout
|
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-08 06:34:51 +01:00
|
|
|
- cmd: dotnet test .\test\Core.Test\Core.Test.csproj --configuration Debug --no-build
|