Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify to single CI platform #778

Merged
merged 16 commits into from
Dec 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 0 additions & 58 deletions .travis.yml

This file was deleted.

86 changes: 57 additions & 29 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,64 @@
version: '{build}'
image: Visual Studio 2019
image:
- Visual Studio 2019
- Ubuntu1604
- macos
environment:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
for:
-
matrix:
only:
- image: Visual Studio 2019
environment:
IMAGE_NAME: win
deploy:
- provider: NuGet
server: https://www.myget.org/F/morelinq/api/v2/package
api_key:
secure: fhGwXyO35FSshRzs5GWmF1LJTrd1sIqmS/jNCSfO2LfOciuYAKiXuFMYZFGiTAl+
atifaziz marked this conversation as resolved.
Show resolved Hide resolved
symbol_server: https://www.myget.org/F/morelinq/symbols/api/v2/package
on:
branch: deploy
notifications:
- provider: Email
to:
- morelinq-roll@googlegroups.com
on_build_success: true
on_build_failure: true
on_build_status_changed: false
-
matrix:
only:
- image: Ubuntu1604
environment:
IMAGE_NAME: ubuntu-16.04
-
matrix:
only:
- image: macos
environment:
IMAGE_NAME: macos
skip_commits:
files:
- '*.md'
- '*.txt'
- '.editorconfig'
- lic/*
environment:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
install:
- ps: Install-Product node 6
- npm install -g eclint
- git rm .editorconfig
- eclint check -n "**/*.{cs,tt,cmd,sh,md,txt,yml}"
- eclint check -w "**/*.{cs,tt,cmd,sh,md,txt,yml,json,sln,csproj,shfbproj}"
- git reset --hard
- ps: tools\dotnet-install.ps1 -JSonFile global.json
- ps: tools\dotnet-install.ps1 -Runtime dotnet -Version 3.1.10 -SkipNonVersionedFiles
- ps: tools\dotnet-install.ps1 -Runtime dotnet -Version 2.1.23 -SkipNonVersionedFiles
- ps: if ($isWindows) { tools\dotnet-install.ps1 -JSonFile global.json }
- ps: if ($isWindows) { tools\dotnet-install.ps1 -Runtime dotnet -Version 3.1.10 -SkipNonVersionedFiles }
- ps: if ($isWindows) { tools\dotnet-install.ps1 -Runtime dotnet -Version 2.1.23 -SkipNonVersionedFiles }
- sh: ./tools/dotnet-install.sh --jsonfile global.json
- sh: ./tools/dotnet-install.sh --runtime dotnet --version 3.1.10 --skip-non-versioned-files
- sh: ./tools/dotnet-install.sh --runtime dotnet --version 2.1.23 --skip-non-versioned-files
- sh: export PATH="~/.dotnet:$PATH"
before_build:
- dotnet --info
build_script:
Expand All @@ -33,7 +73,7 @@ build_script:

$id = $id.Substring(0, 13)

cmd /c call pack.cmd ci-$id
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."
Expand All @@ -48,26 +88,14 @@ build_script:
}
test_script:
- cmd: test.cmd
- sh: ./test.sh
- ps: dotnet reportgenerator -reports:MoreLinq.Test/coverage.net5.0.opencover.xml -targetdir:tmp/cover -tag:(git show -q --pretty=%H)
- ps: Get-ChildItem tmp/cover | Compress-Archive -DestinationPath coverage-report.zip
- cmd: |
cd tmp\cover
tar -cvz -f ../../coverage-report.tar.gz *
- ps: |
cd tmp/cover
tar -cz -f "../../coverage-report-${IMAGE_NAME}.tar.gz" *
- sh: curl -sSL https://codecov.io/bash > codecov
- sh: chmod +x codecov
- sh: if [ "$CI_LINUX" = "true" ]; then ./codecov -f ./MoreLinq.Test/coverage.net5.0.opencover.xml; fi
artifacts:
- path: dist\*.nupkg
- path: coverage-report.*
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: deploy
notifications:
- provider: Email
to:
- morelinq-roll@googlegroups.com
on_build_success: true
on_build_failure: true
on_build_status_changed: false
- path: coverage-report-*
Loading