Skip to content

Commit

Permalink
Merge pull request #52694 from s0undt3ch/2018.3
Browse files Browse the repository at this point in the history
Upload coverage reports on full test runs
  • Loading branch information
s0undt3ch authored May 2, 2019
2 parents 52e26b2 + e897fea commit 70e6d23
Show file tree
Hide file tree
Showing 14 changed files with 36 additions and 42 deletions.
5 changes: 2 additions & 3 deletions .ci/kitchen-centos6-py2
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,17 @@ timeout(time: 8, unit: 'HOURS') {
}
archiveArtifacts artifacts: 'artifacts/*,artifacts/**/*'
}
/* Code coverage uploads disabled because we're not running the full test suite
stage('report code coverage') {
script {
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
sh '''
if [ -f artifacts/coverage/coverage.xml ]; then
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}"
fi
'''
}
}
}
*/
}
} catch (Exception e) {
currentBuild.result = 'FAILURE'
Expand Down Expand Up @@ -117,3 +115,4 @@ timeout(time: 8, unit: 'HOURS') {
}
}

// vi: ft=groovy
6 changes: 3 additions & 3 deletions .ci/kitchen-centos7-py2
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,17 @@ timeout(time: 8, unit: 'HOURS') {
}
archiveArtifacts artifacts: 'artifacts/*,artifacts/**/*'
}
/* Code coverage uploads disabled because we're not running the full test suite
stage('report code coverage') {
script {
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
sh '''
if [ -f artifacts/coverage/coverage.xml ]; then
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}"
fi
'''
}
}
}
*/
}
} catch (Exception e) {
currentBuild.result = 'FAILURE'
Expand Down Expand Up @@ -116,3 +114,5 @@ timeout(time: 8, unit: 'HOURS') {
}
}
}

// vi: ft=groovy
6 changes: 3 additions & 3 deletions .ci/kitchen-centos7-py3
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,17 @@ timeout(time: 6, unit: 'HOURS') {
}
archiveArtifacts artifacts: 'artifacts/*,artifacts/**/*'
}
/* Code coverage uploads disabled because we're not running the full test suite
stage('report code coverage') {
script {
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
sh '''
if [ -f artifacts/coverage/coverage.xml ]; then
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}"
fi
'''
}
}
}
*/
}
} catch (Exception e) {
currentBuild.result = 'FAILURE'
Expand Down Expand Up @@ -116,3 +114,5 @@ timeout(time: 6, unit: 'HOURS') {
}
}
}

// vi: ft=groovy
5 changes: 2 additions & 3 deletions .ci/kitchen-debian8-py2
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,17 @@ timeout(time: 8, unit: 'HOURS') {
}
archiveArtifacts artifacts: 'artifacts/*,artifacts/**/*'
}
/* Code coverage uploads disabled because we're not running the full test suite
stage('report code coverage') {
script {
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
sh '''
if [ -f artifacts/coverage/coverage.xml ]; then
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}"
fi
'''
}
}
}
*/
}
} catch (Exception e) {
currentBuild.result = 'FAILURE'
Expand Down Expand Up @@ -117,3 +115,4 @@ timeout(time: 8, unit: 'HOURS') {
}
}

// vi: ft=groovy
5 changes: 2 additions & 3 deletions .ci/kitchen-debian8-py3
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,17 @@ timeout(time: 6, unit: 'HOURS') {
}
archiveArtifacts artifacts: 'artifacts/*,artifacts/**/*'
}
/* Code coverage uploads disabled because we're not running the full test suite
stage('report code coverage') {
script {
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
sh '''
if [ -f artifacts/coverage/coverage.xml ]; then
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}"
fi
'''
}
}
}
*/
}
} catch (Exception e) {
currentBuild.result = 'FAILURE'
Expand Down Expand Up @@ -117,3 +115,4 @@ timeout(time: 6, unit: 'HOURS') {
}
}

// vi: ft=groovy
5 changes: 2 additions & 3 deletions .ci/kitchen-debian9-py2
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,17 @@ timeout(time: 6, unit: 'HOURS') {
}
archiveArtifacts artifacts: 'artifacts/*,artifacts/**/*'
}
/* Code coverage uploads disabled because we're not running the full test suite
stage('report code coverage') {
script {
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
sh '''
if [ -f artifacts/coverage/coverage.xml ]; then
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}"
fi
'''
}
}
}
*/
}
} catch (Exception e) {
currentBuild.result = 'FAILURE'
Expand Down Expand Up @@ -117,3 +115,4 @@ timeout(time: 6, unit: 'HOURS') {
}
}

// vi: ft=groovy
5 changes: 2 additions & 3 deletions .ci/kitchen-debian9-py3
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,17 @@ timeout(time: 6, unit: 'HOURS') {
}
archiveArtifacts artifacts: 'artifacts/*,artifacts/**/*'
}
/* Code coverage uploads disabled because we're not running the full test suite
stage('report code coverage') {
script {
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
sh '''
if [ -f artifacts/coverage/coverage.xml ]; then
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}"
fi
'''
}
}
}
*/
}
} catch (Exception e) {
currentBuild.result = 'FAILURE'
Expand Down Expand Up @@ -117,3 +115,4 @@ timeout(time: 6, unit: 'HOURS') {
}
}

// vi: ft=groovy
5 changes: 2 additions & 3 deletions .ci/kitchen-ubuntu1404-py2
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,17 @@ timeout(time: 6, unit: 'HOURS') {
}
archiveArtifacts artifacts: 'artifacts/*,artifacts/**/*'
}
/* Code coverage uploads disabled because we're not running the full test suite
stage('report code coverage') {
script {
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
sh '''
if [ -f artifacts/coverage/coverage.xml ]; then
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}"
fi
'''
}
}
}
*/
}
} catch (Exception e) {
currentBuild.result = 'FAILURE'
Expand Down Expand Up @@ -117,3 +115,4 @@ timeout(time: 6, unit: 'HOURS') {
}
}

// vi: ft=groovy
6 changes: 3 additions & 3 deletions .ci/kitchen-ubuntu1604-py2
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,17 @@ timeout(time: 6, unit: 'HOURS') {
}
archiveArtifacts artifacts: 'artifacts/*,artifacts/**/*'
}
/* Code coverage uploads disabled because we're not running the full test suite
stage('report code coverage') {
script {
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
sh '''
if [ -f artifacts/coverage/coverage.xml ]; then
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}"
fi
'''
}
}
}
*/
}
} catch (Exception e) {
currentBuild.result = 'FAILURE'
Expand Down Expand Up @@ -116,3 +114,5 @@ timeout(time: 6, unit: 'HOURS') {
}
}
}

// vi: ft=groovy
6 changes: 3 additions & 3 deletions .ci/kitchen-ubuntu1604-py3
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,17 @@ timeout(time: 6, unit: 'HOURS') {
}
archiveArtifacts artifacts: 'artifacts/*,artifacts/**/*'
}
/* Code coverage uploads disabled because we're not running the full test suite
stage('report code coverage') {
script {
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
sh '''
if [ -f artifacts/coverage/coverage.xml ]; then
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}"
fi
'''
}
}
}
*/
}
} catch (Exception e) {
currentBuild.result = 'FAILURE'
Expand Down Expand Up @@ -116,3 +114,5 @@ timeout(time: 6, unit: 'HOURS') {
}
}
}

// vi: ft=groovy
6 changes: 3 additions & 3 deletions .ci/kitchen-ubuntu1804-py2
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,17 @@ timeout(time: 6, unit: 'HOURS') {
}
archiveArtifacts artifacts: 'artifacts/*,artifacts/**/*'
}
/* Code coverage uploads disabled because we're not running the full test suite
stage('report code coverage') {
script {
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
sh '''
if [ -f artifacts/coverage/coverage.xml ]; then
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}"
fi
'''
}
}
}
*/
}
} catch (Exception e) {
currentBuild.result = 'FAILURE'
Expand Down Expand Up @@ -116,3 +114,5 @@ timeout(time: 6, unit: 'HOURS') {
}
}
}

// vi: ft=groovy
6 changes: 3 additions & 3 deletions .ci/kitchen-ubuntu1804-py3
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,17 @@ timeout(time: 6, unit: 'HOURS') {
}
archiveArtifacts artifacts: 'artifacts/*,artifacts/**/*'
}
/* Code coverage uploads disabled because we're not running the full test suite
stage('report code coverage') {
script {
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
sh '''
if [ -f artifacts/coverage/coverage.xml ]; then
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}"
fi
'''
}
}
}
*/
}
} catch (Exception e) {
currentBuild.result = 'FAILURE'
Expand Down Expand Up @@ -116,3 +114,5 @@ timeout(time: 6, unit: 'HOURS') {
}
}
}

// vi: ft=groovy
6 changes: 3 additions & 3 deletions .ci/kitchen-windows2016-py2
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,17 @@ timeout(time: 6, unit: 'HOURS') {
}
archiveArtifacts artifacts: 'artifacts/*,artifacts/**/*'
}
/* Code coverage uploads disabled because we're not running the full test suite
stage('report code coverage') {
script {
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
sh '''
if [ -f artifacts/coverage/coverage.xml ]; then
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}"
fi
'''
}
}
}
*/
}
} catch (Exception e) {
currentBuild.result = 'FAILURE'
Expand Down Expand Up @@ -115,3 +113,5 @@ timeout(time: 6, unit: 'HOURS') {
}
}
}

// vi: ft=groovy
6 changes: 3 additions & 3 deletions .ci/kitchen-windows2016-py3
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,17 @@ timeout(time: 8, unit: 'HOURS') {
}
archiveArtifacts artifacts: 'artifacts/*,artifacts/**/*'
}
/* Code coverage uploads disabled because we're not running the full test suite
stage('report code coverage') {
script {
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
sh '''
if [ -f artifacts/coverage/coverage.xml ]; then
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}"
fi
'''
}
}
}
*/
}
} catch (Exception e) {
currentBuild.result = 'FAILURE'
Expand Down Expand Up @@ -115,3 +113,5 @@ timeout(time: 8, unit: 'HOURS') {
}
}
}

// vi: ft=groovy

0 comments on commit 70e6d23

Please sign in to comment.