From 366df54ffbeeb2d8249e017bc01347891fb6c515 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Thu, 16 May 2019 17:20:59 +0800 Subject: [PATCH] =?UTF-8?q?doc(Appveyor):=20=E5=A2=9E=E5=8A=A0dev=E5=88=86?= =?UTF-8?q?=E6=94=AF=E7=BC=96=E8=AF=91=E4=B8=8D=E6=B5=8B=E8=AF=95=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- appveyor.yml | 42 +++++++----------------------------------- 1 file changed, 7 insertions(+), 35 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 64569ebe..0240bf9d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,6 +2,7 @@ branches: only: - master + - dev image: Visual Studio 2017 clone_depth: 1 clone_folder: c:\Longbow\BootstrapAdmin @@ -24,29 +25,14 @@ install: xcopy $iniFile "C:\Program Files\MySQL\MySQL Server 5.7" /y build_script: - ps: >- - echo "" - - echo "*****************************************" - - echo "Start Building ..." - dotnet build - - echo "" - - echo "*****************************************" - - echo "Start Publishing ..." - dotnet publish Bootstrap.Admin --configuration Release --no-restore test_script: - ps: >- - echo "" + if ("$($env:APPVEYOR_REPO_BRANCH)" -eq "master") - echo "*****************************************" - - echo "Start UnitTest For SQLite ..." + { dotnet test UnitTest --no-restore --filter "FullyQualifiedName~SQLite" @@ -67,12 +53,6 @@ test_script: sqlcmd -S "$sqlInstance" -U sa -P Password12! -i "$sqlFile" -i "$initFile" -o "$outFile" - echo "" - - echo "*****************************************" - - echo "Start UnitTest For SQLServer ..." - dotnet test UnitTest --no-restore --filter "FullyQualifiedName~SqlServer" @@ -101,12 +81,6 @@ test_script: cmd.exe /c $cmd $initFile - echo "" - - echo "*****************************************" - - echo "Start UnitTest For MySql ..." - dotnet test UnitTest --no-restore --filter "FullyQualifiedName~MySql" @@ -126,15 +100,11 @@ test_script: iex "& $cmd" - echo "" - - echo "*****************************************" - - echo "Start UnitTest For MongoDB ..." - cd $($env:appveyor_build_folder) dotnet test UnitTest --no-restore --filter "FullyQualifiedName~MongoDB" + + } artifacts: - path: Bootstrap.Admin\bin\release\netcoreapp2.2\publish\ name: BootstrapAdmin @@ -150,6 +120,8 @@ deploy: draft: true prerelease: true force_update: true + on: + branch: master notifications: - provider: Email to: