doc(Appveyor): 增加dev分支编译不测试功能
This commit is contained in:
parent
bd1aabdfd3
commit
366df54ffb
42
appveyor.yml
42
appveyor.yml
|
@ -2,6 +2,7 @@
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
- dev
|
||||||
image: Visual Studio 2017
|
image: Visual Studio 2017
|
||||||
clone_depth: 1
|
clone_depth: 1
|
||||||
clone_folder: c:\Longbow\BootstrapAdmin
|
clone_folder: c:\Longbow\BootstrapAdmin
|
||||||
|
@ -24,29 +25,14 @@ install:
|
||||||
xcopy $iniFile "C:\Program Files\MySQL\MySQL Server 5.7" /y
|
xcopy $iniFile "C:\Program Files\MySQL\MySQL Server 5.7" /y
|
||||||
build_script:
|
build_script:
|
||||||
- ps: >-
|
- ps: >-
|
||||||
echo ""
|
|
||||||
|
|
||||||
echo "*****************************************"
|
|
||||||
|
|
||||||
echo "Start Building ..."
|
|
||||||
|
|
||||||
dotnet build
|
dotnet build
|
||||||
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
echo "*****************************************"
|
|
||||||
|
|
||||||
echo "Start Publishing ..."
|
|
||||||
|
|
||||||
dotnet publish Bootstrap.Admin --configuration Release --no-restore
|
dotnet publish Bootstrap.Admin --configuration Release --no-restore
|
||||||
test_script:
|
test_script:
|
||||||
- ps: >-
|
- ps: >-
|
||||||
echo ""
|
if ("$($env:APPVEYOR_REPO_BRANCH)" -eq "master")
|
||||||
|
|
||||||
echo "*****************************************"
|
{
|
||||||
|
|
||||||
echo "Start UnitTest For SQLite ..."
|
|
||||||
|
|
||||||
dotnet test UnitTest --no-restore --filter "FullyQualifiedName~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"
|
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"
|
dotnet test UnitTest --no-restore --filter "FullyQualifiedName~SqlServer"
|
||||||
|
|
||||||
|
|
||||||
|
@ -101,12 +81,6 @@ test_script:
|
||||||
cmd.exe /c $cmd $initFile
|
cmd.exe /c $cmd $initFile
|
||||||
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
echo "*****************************************"
|
|
||||||
|
|
||||||
echo "Start UnitTest For MySql ..."
|
|
||||||
|
|
||||||
dotnet test UnitTest --no-restore --filter "FullyQualifiedName~MySql"
|
dotnet test UnitTest --no-restore --filter "FullyQualifiedName~MySql"
|
||||||
|
|
||||||
|
|
||||||
|
@ -126,15 +100,11 @@ test_script:
|
||||||
iex "& $cmd"
|
iex "& $cmd"
|
||||||
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
echo "*****************************************"
|
|
||||||
|
|
||||||
echo "Start UnitTest For MongoDB ..."
|
|
||||||
|
|
||||||
cd $($env:appveyor_build_folder)
|
cd $($env:appveyor_build_folder)
|
||||||
|
|
||||||
dotnet test UnitTest --no-restore --filter "FullyQualifiedName~MongoDB"
|
dotnet test UnitTest --no-restore --filter "FullyQualifiedName~MongoDB"
|
||||||
|
|
||||||
|
}
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: Bootstrap.Admin\bin\release\netcoreapp2.2\publish\
|
- path: Bootstrap.Admin\bin\release\netcoreapp2.2\publish\
|
||||||
name: BootstrapAdmin
|
name: BootstrapAdmin
|
||||||
|
@ -150,6 +120,8 @@ deploy:
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: true
|
prerelease: true
|
||||||
force_update: true
|
force_update: true
|
||||||
|
on:
|
||||||
|
branch: master
|
||||||
notifications:
|
notifications:
|
||||||
- provider: Email
|
- provider: Email
|
||||||
to:
|
to:
|
||||||
|
|
Loading…
Reference in New Issue