1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00
bitwarden-server/appveyor.yml

34 lines
1.4 KiB
YAML
Raw Normal View History

2019-03-08 05:21:58 +01:00
image:
2019-03-08 15:35:07 +01:00
- Visual Studio 2017
2019-03-08 05:21:58 +01:00
- 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:59:44 +01:00
- sh: echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
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
2019-03-08 18:26:19 +01:00
- sh: '[[ "${APPVEYOR_REPO_TAG_NAME}" != "" ]] && echo "TAG IS SET"'
- sh: '[[ $APPVEYOR_FORCED_BUILD ]] && echo "FORCED BUILD"'
#- sh: '[[ "${APPVEYOR_REPO_TAG_NAME}" != "" && $APPVEYOR_FORCED_BUILD ]] && ./build.sh tag ${APPVEYOR_REPO_TAG_NAME#"v"}'
2019-03-08 05:37:34 +01:00
- sh: docker images
2019-03-08 14:55:19 +01:00
- sh: ./build.sh push dev
2019-03-08 18:26:19 +01:00
#- sh: '[[ "${APPVEYOR_REPO_TAG_NAME}" != "" && $APPVEYOR_FORCED_BUILD ]] && ./build.sh push latest && ./build.sh push ${APPVEYOR_REPO_TAG_NAME#"v"}'
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