mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
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
This commit is contained in:
committed by
Jesse Hallam
parent
cd5d5f832c
commit
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') {
|
||||
ansiColor('xterm') {
|
||||
sh """
|
||||
sh """
|
||||
cd /go/src/github.com/mattermost/mattermost-server
|
||||
|
||||
mkdir -p client/plugins
|
||||
cat config/config.json
|
||||
|
||||
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:
|
||||
status:
|
||||
project:
|
||||
default:
|
||||
threshold: 1%
|
||||
threshold: 1
|
||||
patch: off
|
||||
changes: off
|
||||
ignore:
|
||||
- store/storetest
|
||||
comment: false
|
||||
|
||||
Reference in New Issue
Block a user