Skip to content

Commit

Permalink
Fix coveralls support
Browse files Browse the repository at this point in the history
  • Loading branch information
mstimberg committed Jan 6, 2021
1 parent 07c264e commit f8bc700
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
12 changes: 5 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ stages:
script_name: dev/continuous-integration/run_test_suite.py
standalone: false
split_run: 1
upload_coverage : True
upload_coverage : true
Python38_runtime_2:
python.version: '3.8'
script_name: dev/continuous-integration/run_test_suite.py
standalone: false
split_run: 2
upload_coverage : True
upload_coverage : true
Python38_standalone:
python.version: '3.8'
script_name: dev/continuous-integration/run_test_suite.py
standalone: true
upload_coverage : True
upload_coverage : true
Python38_runtime_1_32bit:
python.version: '3.8'
script_name: dev/continuous-integration/run_test_suite.py
Expand Down Expand Up @@ -126,10 +126,8 @@ stages:
steps:
- task: InvokeRESTAPI@1
inputs:
connectionType: Generic
serviceConnection: coveralls
urlSuffix: repo_token=$(coveralls_repo_token)
method: Post
urlSuffix: '?repo_token=$(coveralls_repo_token)'
headers: |
{
"Content-Type": "application/json"
Expand All @@ -139,5 +137,5 @@ stages:
"payload": {
"build_num": $(Build.BuildNumber),
"status": "done"
}
}
}
7 changes: 5 additions & 2 deletions dev/continuous-integration/azure-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ steps:
pip install coveralls
cp ../.coverage .
export CIRCLE_BRANCH=$BUILD_SOURCEBRANCH
COVERALLS_PARALLEL=true coveralls --rcfile=.coveragerc
coveralls --rcfile=.coveragerc
env:
CIRCLECI: 1
CIRCLE_BUILD_NUM: $(Build.BuildNumber)
CIRCLE_BRANCH: $(Build.SourceBranchName)
COVERALLS_FLAG_NAME: $(System.JobName)
COVERALLS_REPO_TOKEN: $(coveralls_repo_token)
COVERALLS_PARALLEL: true
displayName: 'Upload coverage data to coveralls'
condition: eq(variables['upload_coverage'], 'True')
condition: eq(variables.upload_coverage, true)

0 comments on commit f8bc700

Please sign in to comment.