1 Star 0 Fork 0

bestkf / Castle.Core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
appveyor.yml 2.46 KB
一键复制 编辑 原始数据 按行查看 历史
stakx 提交于 2020-05-02 13:36 . Use VS 2019 tooling for Windows build
image:
- Visual Studio 2019
- Ubuntu
# ----------------
# ALL BUILD JOBS
# ----------------
skip_tags: false
test: off
for:
- # -----------------
# LINUX BUILD JOB
# -----------------
matrix:
only:
- image: Ubuntu
# build and run tests
build_script:
- uname -a
- ./build.sh
# upload test results
after_build:
- find "$APPVEYOR_BUILD_FOLDER" -type f -name '*TestResults.xml' -print0 | xargs -0 -I '{}' curl -F 'file=@{}' "https://ci.appveyor.com/api/testresults/nunit3/$APPVEYOR_JOB_ID"
# deployment is handled exclusively by the Windows build job (below)
deploy: off
- # -------------------
# WINDOWS BUILD JOB
# -------------------
matrix:
only:
- image: Visual Studio 2019
# update AppVeyor build version; this matters for deployments
init:
- ps: |
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
Update-AppveyorBuild -Version ($env:APPVEYOR_REPO_TAG_NAME).TrimStart("v")
}
# build and run tests
build_script:
- cmd: build.cmd
# upload test results
after_build:
- ps: |
$wc = New-Object System.Net.WebClient
$wc.UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path "NetCoreClrTestResults.xml"))
$wc.UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path "NetCoreClrWeakNamedTestResults.xml"))
$wc.UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path "DesktopClrTestResults.xml"))
$wc.UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path "DesktopClrWeakNamedTestResults.xml"))
# push packages to NuGet on tag builds
on_success:
- ps: |
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
nuget push ".\build\Castle.Core.${env:APPVEYOR_BUILD_VERSION}.nupkg" -ApiKey $env:NUGET_API_KEY -Source https://api.nuget.org/v3/index.json
nuget push ".\build\Castle.Core-log4net.${env:APPVEYOR_BUILD_VERSION}.nupkg" -ApiKey $env:NUGET_API_KEY -Source https://api.nuget.org/v3/index.json
nuget push ".\build\Castle.Core-NLog.${env:APPVEYOR_BUILD_VERSION}.nupkg" -ApiKey $env:NUGET_API_KEY -Source https://api.nuget.org/v3/index.json
nuget push ".\build\Castle.Core-Serilog.${env:APPVEYOR_BUILD_VERSION}.nupkg" -ApiKey $env:NUGET_API_KEY -Source https://api.nuget.org/v3/index.json
}
# upload packages to AppVeyor
artifacts:
- path: build\*.nupkg
name: core
C#
1
https://gitee.com/livecsharp/castle.core.git
git@gitee.com:livecsharp/castle.core.git
livecsharp
castle.core
Castle.Core
master

搜索帮助