From 9ef83218f18b09b99d317eb81be683b9ba9e279b Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 9 Oct 2019 13:08:54 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E6=9B=B4=E6=96=B0=20MySql=20=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- appveyor.test.ps1 | 2 +- appveyor.yml | 4 ++++ db/MySQL/my.ini | 6 ++++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/appveyor.test.ps1 b/appveyor.test.ps1 index 0eefdcf7..d7223364 100644 --- a/appveyor.test.ps1 +++ b/appveyor.test.ps1 @@ -38,7 +38,7 @@ function runUnitTest() { write-host "dotnet test test\UnitTest" -ForegroundColor Cyan - dotnet test test\UnitTest /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[*]*.MySql.*" /p:ExcludeByFile="..\..\src\admin\Bootstrap.Admin\Program.cs%2c..\..\src\admin\Bootstrap.Admin\Startup.cs%2c..\..\src\admin\Bootstrap.Admin\Extensions\SMSExtensions.cs%2c..\..\src\admin\Bootstrap.DataAccess\AutoDB.cs" /p:CoverletOutput=..\..\ + dotnet test test\UnitTest --filter="FullyQualifiedName!~MySql" /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Include="[Bootstrap.Admin*]*%2c[Bootstrap.DataAccess*]*" /p:Exclude="[*]*Program%2c[*]*Startup%2c[Bootstrap.DataAccess]*AutoDB%2c[Bootstrap.DataAccess]*WeChatHelper%2c[Bootstrap.DataAccess]*DbLogTask" /p:ExcludeByFile="**/SMSExtensions.cs%2c**/Helper/OAuthHelper.cs" /p:CoverletOutput=..\..\ } function coverallUnitTest() { diff --git a/appveyor.yml b/appveyor.yml index c44b5534..cf7a0c69 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -24,7 +24,11 @@ services: - mongodb install: - ps: >- + #copy my.ini into mysql folder + dotnet --version + + #xcopy "$($env:appveyor_build_folder)\db\MySQL\my.ini" "C:\Program Files\MySQL\MySQL Server 5.7" /y build_script: - ps: >- .\appveyor.build.ps1 diff --git a/db/MySQL/my.ini b/db/MySQL/my.ini index eb91891f..9f4ad7e2 100644 --- a/db/MySQL/my.ini +++ b/db/MySQL/my.ini @@ -1,7 +1,9 @@ -[client] +[client] default-character-set=utf8 [mysqld] charcater_set_client=utf8 character_set_connection=utf8 -character_set_results=utf8 \ No newline at end of file +character_set_results=utf8 +character_set_server=utf8 +character_set_database=utf8