File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -64,13 +64,20 @@ jobs:
64
64
cd tests && ./runtests.sh
65
65
displayName: Build and test
66
66
67
+ - task : PublishCodeCoverageResults@1
68
+ inputs :
69
+ codeCoverageTool : Cobertura
70
+ summaryFileLocation : ' $(System.DefaultWorkingDirectory)/**/coverage.xml'
71
+ reportDirectory : ' $(System.DefaultWorkingDirectory)/**/htmlcov'
72
+
67
73
- bash : |
68
74
if [ $PYTHON_VERSION == 3.7 ]; then
69
75
source activate mpi4py_fft_env
70
76
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)
73
80
python-codacy-coverage -r coverage.xml -t $(CODACY_PROJECT_TOKEN)
74
81
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
You can’t perform that action at this time.
0 commit comments