Skip to content

Commit

Permalink
ci: Fix collection of test report
Browse files Browse the repository at this point in the history
Minor docs changes to running builds too.
  • Loading branch information
Kieranties committed May 5, 2020
1 parent b783b82 commit bcfe2c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ Build

To build SimpleVersion locally, run `build.ps1` from the root of the repository:
```ps
> .\build.ps1 # => Runs a full build with unit tests
> .\build.ps1 -BuildDocs # => Runs a full build and creates the docs site
> .\build.ps1 -BuildDocs -ServeDocs # Runs a full builds and serves the docs site
> .\build.ps1 # => Builds libraries, docs site, runs tests, prepares assets
> .\build.ps1 -ServeDocs # => Builds libraries, docs site, then serves docs site on http://localhost:8080
```

Issues
Expand Down
7 changes: 4 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ variables:
disable.coverage.autogenerate: true

jobs:
- job: 'Build_Assets'
- job: 'build_test_pack'
displayName: "Core Build"
pool:
vmImage: windows-latest
steps:

# Build
- pwsh: ./build.ps1 -BuildDocs -ArtifactsPath $(ArtifactsPath) -Configuration $(Configuration)
- pwsh: ./build.ps1 -ArtifactsPath $(ArtifactsPath) -Configuration $(Configuration)
displayName: 'Build and Test'

# Publish test results
Expand All @@ -48,7 +49,7 @@ jobs:
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(ArtifactsPath)/**/*.cobertura.xml'
reportDirectory: '$(ArtifactsPath)/coveragereport'
reportDirectory: '$(ArtifactsPath)/tests/coveragereport'

# Quality check the build
- task: BuildQualityChecks@6
Expand Down
1 change: 0 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ param(
[ValidateSet('Debug', 'Release')]
[String]$Configuration = 'Debug',
[String]$ArtifactsPath = (Join-Path $PSScriptRoot '.artifacts'),
[Switch]$BuildDocs,
[Switch]$ServeDocs = $false,
[Switch]$Resources
)
Expand Down

0 comments on commit bcfe2c4

Please sign in to comment.