Skip to content

Commit 93165d2

Browse files
committed
Try fixing upload to codecov
1 parent 7fa214d commit 93165d2

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

azure-pipelines.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,20 @@ jobs:
6464
cd tests && ./runtests.sh
6565
displayName: Build and test
6666
67+
- task: PublishCodeCoverageResults@1
68+
inputs:
69+
codeCoverageTool: Cobertura
70+
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
71+
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
72+
6773
- bash: |
6874
if [ $PYTHON_VERSION == 3.7 ]; then
6975
source activate mpi4py_fft_env
7076
cd tests
71-
curl -s -o codecov.sh https://codecov.io/bash
72-
bash codecov.sh -X gcov -X fix -t $(CODECOV_TOKEN)
77+
codecov -t $(CODECOV_TOKEN)
78+
#curl -s -o codecov.sh https://codecov.io/bash
79+
#bash codecov.sh -X gcov -X fix -t $(CODECOV_TOKEN)
7380
python-codacy-coverage -r coverage.xml -t $(CODACY_PROJECT_TOKEN)
7481
fi
75-
condition: succeeded()
76-
displayName: Upload to Codecov
82+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
83+
displayName: Upload to Codecov

0 commit comments

Comments
 (0)