1 Star 0 Fork 0

吉良吉影/MoreLINQ

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
appveyor.yml 3.28 KB
一键复制 编辑 原始数据 按行查看 历史
Atif Aziz 提交于 2025-03-14 22:19 +08:00 . Add dev container config for development
version: '{build}'
image:
- Visual Studio 2022
- Ubuntu1804
environment:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
SKIP_TEST_BUILD: true
skip_commits:
files:
- '*.md'
- '*.txt'
- '**/.gitignore'
- .github/**
- .devcontainer/devcontainer.json
for:
-
matrix:
only:
- image: Visual Studio 2022
environment:
IMAGE_NAME: win
deploy:
- provider: NuGet
server: https://www.myget.org/F/morelinq/api/v2/package
api_key:
secure: fhGwXyO35FSshRzs5GWmF1LJTrd1sIqmS/jNCSfO2LfOciuYAKiXuFMYZFGiTAl+
symbol_server: https://www.myget.org/F/morelinq/symbols/api/v2/package
on:
branch: master
notifications:
- provider: Email
to:
- morelinq-roll@googlegroups.com
on_build_success: true
on_build_failure: true
on_build_status_changed: false
-
matrix:
only:
- image: Ubuntu1804
environment:
IMAGE_NAME: ubuntu-18.04
install:
- npm install -g eclint
- git rm .editorconfig
- pwsh: git rm 'tools/dotnet-install.*'
- pwsh: ./eclint.ps1 -InsertFinalNewline -Verbose
- pwsh: ./eclint.ps1 -TrimTrailingWhitespace -Verbose
- git reset --hard
- ps: if ($isWindows) { tools\dotnet-install.ps1 -JSonFile global.json }
- ps: if ($isWindows) { tools\dotnet-install.ps1 -Runtime dotnet -Version 6.0.11 -SkipNonVersionedFiles }
- ps: if ($isWindows) { tools\dotnet-install.ps1 -Runtime dotnet -Version 8.0.11 -SkipNonVersionedFiles }
- sh: ./tools/dotnet-install.sh --jsonfile global.json
- sh: ./tools/dotnet-install.sh --runtime dotnet --version 6.0.11 --skip-non-versioned-files
- sh: ./tools/dotnet-install.sh --runtime dotnet --version 8.0.11 --skip-non-versioned-files
- sh: export PATH="$HOME/.dotnet:$PATH"
before_build:
- dotnet --info
- pwsh: |
grep --extended-regexp '^[[:space:]]*using[[:space:]]+System\.Linq;' (dir -Recurse -File -Filter *Test.cs MoreLinq.Test)
if ($LASTEXITCODE -eq 0) {
throw 'Unit tests should not import System.Linq'
} else {
$LASTEXITCODE = 0
}
# Touch T4 templates to force code generation & validation
- touch MoreLinq/*.g.tt
build_script:
- ps: |
$id = $env:APPVEYOR_REPO_COMMIT_TIMESTAMP -replace '([-:]|\.0+Z)', ''
$id = $id.Substring(0, 13)
if ($isWindows) { cmd /c call pack.cmd ci-$id } else { ./pack.sh ci-$id }
if ($LASTEXITCODE -ne 0) {
throw "Building/Packing failed with an exit code of $LASTEXITCODE."
}
after_build:
- ps: |
$diff = git diff --ignore-all-space --exit-code 2>&1
$diff | % { if ($_ -is [string]) { $_ } else { [string]$_ } } | echo
if ($LASTEXITCODE -ne 0) {
throw "New code was generated during build that's not been committed."
}
- ps: |
dir dist\*.nupkg | % {
dotnet meziantou.validate-nuget-package --excluded-rules IconMustBeSet $_
if ($LASTEXITCODE) {
throw "Package validation failed: $_"
}
}
test_script:
- cmd: test.cmd
- sh: ./test.sh
- ps: dotnet reportgenerator '-reports:MoreLinq.Test/TestResults/coverage-*.opencover.xml' -targetdir:tmp/cover -tag:(git show -q --pretty=%H)
- ps: |
cd tmp/cover
tar -cz -f "../../coverage-report-${env:IMAGE_NAME}.tar.gz" *
- sh: curl -sSL https://codecov.io/bash > codecov
- sh: chmod +x codecov
- sh: if [ "$CI_LINUX" = "true" ]; then ./codecov; fi
artifacts:
- path: dist\*.nupkg
- path: coverage-report-*
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hopefsharp/MoreLINQ.git
git@gitee.com:hopefsharp/MoreLINQ.git
hopefsharp
MoreLINQ
MoreLINQ
master

搜索帮助