Skip to content

Commit

Permalink
Remove AppVeyor CI Build - Fixes #329 (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
PlagueHO authored Mar 16, 2020
1 parent fc5ffe4 commit e5ca313
Show file tree
Hide file tree
Showing 9 changed files with 588 additions and 509 deletions.
17 changes: 2 additions & 15 deletions .codecovio/CodeCovIo.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function Export-CodeCovIoJson
[Parameter()]
[ValidateNotNullOrEmpty()]
[String]
$Path = (Join-Path -Path $env:TEMP -ChildPath 'codeCov.json')
$Path = (Join-Path -Path ([System.IO.Path]::GetTempPath()) -ChildPath 'codeCov.json')
)

Write-Verbose -Message "RepoRoot: $RepoRoot"
Expand Down Expand Up @@ -312,7 +312,7 @@ function Export-CodeCovIoJson
.PARAMETER Path
The path to the code coverage report (gcov not supported)
#>
function Invoke-UploadCoveCoveIoReport
function Invoke-UploadCodeCovIoReport
{
[CmdletBinding()]
param
Expand All @@ -324,24 +324,11 @@ function Invoke-UploadCoveCoveIoReport

$resolvedResultFile = (Resolve-Path -Path $Path).ProviderPath

if ($env:APPVEYOR_REPO_BRANCH)
{
Push-AppveyorArtifact -Path $resolvedResultFile
}

<#
See this link for information around codecov.exe
https://github.com/codecov/codecov-exe
#>
$uploadResults = & choco install codecov --yes

$uploadResults += codecov -f $resolvedResultFile --required

if ($env:APPVEYOR_REPO_BRANCH)
{
$logPath = (Join-Path -Path $env:TEMP -ChildPath 'codeCovUpload.log')
$uploadResults | Out-File -Encoding ascii -LiteralPath $logPath -Force
$resolvedLogPath = (Resolve-Path -Path $logPath).ProviderPath
Push-AppveyorArtifact -Path $resolvedLogPath
}
}
28 changes: 0 additions & 28 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,34 +103,6 @@ about it.

This is used to test the module on PowerShell on Windows and PowerShell Core on Linux.

### AppVeyor

We use [AppVeyor](http://www.appveyor.com/) as a continuous integration (CI) system.

![AppVeyor-Badge-Green.png](Images/AppVeyor-Badge-Green.png)

This badge is **clickable**, you can open corresponding build page with logs, artifacts
and tests results.
From there you can easily navigate to the whole build history.

AppVeyor builds and runs tests on every pull request and provides quick feedback
about it.

This is used to test the module on PowerShell on Windows.

### TravisCI

We use [TravisCI](http://travis-ci.org/) as a continuous integration (CI) system.

![TravisCI-Badge-Green.png](Images/TravisCI-Badge-Green.png)

This badge is **clickable**, you can open corresponding build page with logs, artifacts
and tests results.
From there you can easily navigate to the whole build history.

TravisCI builds and runs tests on every pull request and provides quick feedback
about it.

## Testing

- Any changed code should not cause Unit Tests to fail.
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## Unreleased

- Remove AppVeyor CI pipeline - fixes [Issue #329](https://github.com/PlagueHO/CosmosDB/issues/329).
- Restructure Azure Pipeline:
- Add testing on Windows Server 2019 and separate module build process.
- Convert to multi stage pipeline.

## 3.5.2.487

- Update `BuildHelpers` to version 2.0.11.
Expand Down
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

## Module Build Status

| Branch | AzurePipelines CI | AppVeyor CI | Code Coverage |
| ------ | -------------------------------------- | -------------------------------------- | -------------------------------------- |
| dev | [![ap-image-dev][]][ap-site-dev] | [![av-image-dev][]][av-site-dev] | [![cc-image-dev][]][cc-site-dev] |
| master | [![ap-image-master][]][ap-site-master] | [![av-image-master][]][av-site-master] | [![cc-image-master][]][cc-site-master] |
| Branch | Azure Pipelines CI | Code Coverage |
| ------ | --------------------------------------- | -------------------------------------- |
| dev | [![ap-image-dev][]][ap-site-dev] | [![cc-image-dev][]][cc-site-dev] |
| master | [![ap-image-master][]][ap-site-master] | [![cc-image-master][]][cc-site-master] |

## Table of Contents

Expand Down Expand Up @@ -102,9 +102,8 @@ This PowerShell module is automatically tested and validated to run
on the following systems:

- Windows Server (using Windows PowerShell 5.1):
- Windows Server 2012 R2: Using [AppVeyor CI](https://ci.appveyor.com/project/PlagueHO/cosmosdb).
- Windows Server 2016: Using [AppVeyor CI](https://ci.appveyor.com/project/PlagueHO/cosmosdb).
- Windows Server 2016: Using [Azure Pipelines](https://dev.azure.com/dscottraynsford/GitHub/_build?definitionId=4).
- Windows Server 2019: Using [Azure Pipelines](https://dev.azure.com/dscottraynsford/GitHub/_build?definitionId=4).
- Linux (using PowerShell Core 6.x):
- Ubuntu Trusty 16.04: Using [Azure Pipelines](https://dev.azure.com/dscottraynsford/GitHub/_build?definitionId=4).
- Linux (using PowerShell 7.x):
Expand Down Expand Up @@ -1004,14 +1003,10 @@ For a list of changes to versions, see the [CHANGELOG.md](CHANGELOG.md) file.

[ap-image-dev]: https://dev.azure.com/dscottraynsford/GitHub/_apis/build/status/PlagueHO.CosmosDB?branchName=dev
[ap-site-dev]: https://dev.azure.com/dscottraynsford/GitHub/_build/latest?definitionId=4
[av-image-dev]: https://ci.appveyor.com/api/projects/status/v5wqtt63nnmkm94j/branch/dev?svg=true
[av-site-dev]: https://ci.appveyor.com/project/PlagueHO/cosmosdb/branch/dev
[cc-image-dev]: https://codecov.io/gh/PlagueHO/CosmosDB/branch/dev/graph/badge.svg
[cc-site-dev]: https://codecov.io/gh/PlagueHO/CosmosDB/branch/dev

[ap-image-master]: https://dev.azure.com/dscottraynsford/GitHub/_apis/build/status/PlagueHO.CosmosDB?branchName=master
[ap-site-master]: https://dev.azure.com/dscottraynsford/GitHub/_build/latest?definitionId=4
[av-image-master]: https://ci.appveyor.com/api/projects/status/v5wqtt63nnmkm94j/branch/master?svg=true
[av-site-master]: https://ci.appveyor.com/project/PlagueHO/cosmosdb/branch/master
[cc-image-master]: https://codecov.io/gh/PlagueHO/CosmosDB/branch/master/graph/badge.svg
[cc-site-master]: https://codecov.io/gh/PlagueHO/CosmosDB/branch/master
13 changes: 0 additions & 13 deletions appveyor.yml

This file was deleted.

Loading

0 comments on commit e5ca313

Please sign in to comment.