Skip to content

Commit

Permalink
switch to using coveralls (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
wumpus committed Nov 28, 2020
1 parent ffbfb0b commit 69ab4fa
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# paramsurvey

[![Build Status](https://dev.azure.com/lindahl0577/paramsurvey/_apis/build/status/wumpus.paramsurvey?branchName=master)](https://dev.azure.com/lindahl0577/paramsurvey/_build/latest?definitionId=1&branchName=master) [![Coverage](https://img.shields.io/azure-devops/coverage/lindahl0577/paramsurvey/1)](https://dev.azure.com/lindahl0577/paramsurvey/_build/latest?definitionId=1&branchName=master) [![Apache License 2.0](https://img.shields.io/github/license/wumpus/paramsurvey.svg)](LICENSE)
[![Build Status](https://dev.azure.com/lindahl0577/paramsurvey/_apis/build/status/wumpus.paramsurvey?branchName=master)](https://dev.azure.com/lindahl0577/paramsurvey/_build/latest?definitionId=1&branchName=master) [![Coverage](https://coveralls.io/repos/github/wumpus/paramsurvey/badge.svg?branch=master)](https://coveralls.io/github/wumpus/paramsurvey?branch=master) [![Apache License 2.0](https://img.shields.io/github/license/wumpus/paramsurvey.svg)](LICENSE)

paramsurvey is a set of tools for creating and executing parameter surveys.

Expand Down
39 changes: 19 additions & 20 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# Python package
# Create and test a Python package on multiple Python versions.
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/python

trigger:
- main
- master

jobs:
- job: linux
Expand Down Expand Up @@ -46,19 +41,21 @@ jobs:
displayName: 'Install dependencies'
- script: |
pip install pytest pytest-azurepipelines
if [ ! -z "$(myenv)" ]; then
export $(myenv)
fi
make test_coverage
displayName: 'pytest'
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
displayName: 'coverage'
- script: |
pip install coveralls
export CIRCLE_BRANCH=$BUILD_SOURCEBRANCH
coveralls
displayName: 'coveralls'
env:
CIRCLECI: 1
CIRCLE_BUILD_NUM: $(Build.BuildNumber)
COVERALLS_REPO_TOKEN: $(coveralls_repo_token)
- job: macos
pool:
Expand Down Expand Up @@ -87,16 +84,18 @@ jobs:
displayName: 'Install dependencies'
- script: |
pip install pytest pytest-azurepipelines
if [ ! -z "$(myenv)" ]; then
export $(myenv)
fi
make test_coverage
displayName: 'pytest'
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
displayName: 'coverage'
- script: |
pip install coveralls
export CIRCLE_BRANCH=$BUILD_SOURCEBRANCH
coveralls
displayName: 'coveralls'
env:
CIRCLECI: 1
CIRCLE_BUILD_NUM: $(Build.BuildNumber)
COVERALLS_REPO_TOKEN: $(coveralls_repo_token)

0 comments on commit 69ab4fa

Please sign in to comment.