add codecov back (#10215)
* add codecov back * add token * remove option * update codecov * upddate codecov * add back threshold * add some configs * update per feedback * add error fallback * fix error * testing
Этот коммит содержится в:
коммит произвёл
Jesse Hallam
родитель
cd5d5f832c
Коммит
42356bc74f
@@ -124,15 +124,22 @@ pipeline {
|
|||||||
|
|
||||||
withDockerContainer(args: "-u root --privileged --net ${COMPOSE_PROJECT_NAME}_mm-test -v ${WORKSPACE}/src:/go/src/", image: 'mattermost/mattermost-build-server:dec-7-2018') {
|
withDockerContainer(args: "-u root --privileged --net ${COMPOSE_PROJECT_NAME}_mm-test -v ${WORKSPACE}/src:/go/src/", image: 'mattermost/mattermost-build-server:dec-7-2018') {
|
||||||
ansiColor('xterm') {
|
ansiColor('xterm') {
|
||||||
sh """
|
sh """
|
||||||
cd /go/src/github.com/mattermost/mattermost-server
|
cd /go/src/github.com/mattermost/mattermost-server
|
||||||
|
|
||||||
mkdir -p client/plugins
|
mkdir -p client/plugins
|
||||||
cat config/config.json
|
cat config/config.json
|
||||||
|
|
||||||
make test-server BUILD_NUMBER='${BRANCH_NAME}-${BUILD_NUMBER}' TESTFLAGS= TESTFLAGSEE=
|
make test-server BUILD_NUMBER='${BRANCH_NAME}-${BUILD_NUMBER}' TESTFLAGS= TESTFLAGSEE=
|
||||||
|
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
withCredentials([string(credentialsId: 'CODECOV_TOKEN', variable: 'CODECOV')]) {
|
||||||
|
sh '''
|
||||||
|
cd /go/src/github.com/mattermost/mattermost-server
|
||||||
|
curl -s https://codecov.io/bash | bash -s - -t $CODECOV || echo 'Codecov failed to upload'
|
||||||
|
'''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,16 @@
|
|||||||
|
codecov:
|
||||||
|
ci:
|
||||||
|
- build.mattermost.com
|
||||||
|
notify:
|
||||||
|
require_ci_to_pass: yes
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
status:
|
status:
|
||||||
project:
|
project:
|
||||||
default:
|
default:
|
||||||
threshold: 1%
|
threshold: 1
|
||||||
patch: off
|
patch: off
|
||||||
|
changes: off
|
||||||
ignore:
|
ignore:
|
||||||
- store/storetest
|
- store/storetest
|
||||||
comment: false
|
comment: false
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user