From 6aa1ffd047e06dff7c8c2175e02036be053cd134 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 18 May 2019 17:54:10 +0800 Subject: [PATCH] =?UTF-8?q?doc(Appveyor):=20=E5=8D=95=E5=85=83=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=B8=80=E8=B5=B7=E8=BF=90=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- appveyor.yml | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 995e6609..dc1a81f1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -38,35 +38,22 @@ test_script: echo "" "Install coveralls.net tools" dotnet tool install coveralls.net --version 1.0.0 --tool-path "./tools" + - # SQLite database - - echo "" "Start test for SQLite" - - dotnet test UnitTest --no-restore --filter "FullyQualifiedName~SQLite" /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutputDirectory=../ - - cmd.exe /c ".\tools\csmacnz.Coveralls.exe --opencover -i coverage.xml --useRelativePaths" - - + # init sqlserver database + $startPath = "$($env:appveyor_build_folder)\DatabaseScripts" $sqlInstance = "(local)\SQL2014" $outFile = "$($env:appveyor_build_folder)\DatabaseScripts\output.log" - - # init sqlserver database - $sqlFile = join-path $startPath "Install.sql" $initFile = join-path $startPath "InitData.sql" sqlcmd -S "$sqlInstance" -U sa -P Password12! -i "$sqlFile" -i "$initFile" -o "$outFile" - echo "" "Start test for SqlServer" - - dotnet test UnitTest --no-restore --filter "FullyQualifiedName~SqlServer" - # init mysql database @@ -91,11 +78,6 @@ test_script: cmd.exe /c $cmd $initFile - echo "" "Start test for MySql" - - dotnet test UnitTest --no-restore --filter "FullyQualifiedName~MySql" - - # init mongodb data $initFolder = join-path $startPath "MongoDB" @@ -114,10 +96,11 @@ test_script: cd $($env:appveyor_build_folder) - echo "" "Start test for MongoDB" + #dotnet test UnitTest --no-restore --filter "FullyQualifiedName~MongoDB" /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutputDirectory=../ - dotnet test UnitTest --no-restore --filter "FullyQualifiedName~MongoDB" /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutputDirectory=../ + dotnet test UnitTest --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Include="[Bootstrap*]*" /p:CoverletOutput=../ + cmd.exe /c ".\tools\csmacnz.Coveralls.exe --opencover -i coverage.opencover.xml --useRelativePaths" } artifacts: - path: Bootstrap.Admin\bin\release\netcoreapp2.2\publish\