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:
Carlos Tadeu Panato Junior
2019-02-13 20:32:12 +01:00
committed by Jesse Hallam
parent cd5d5f832c
commit 42356bc74f
2 changed files with 16 additions and 2 deletions

View File

@@ -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'
'''
}
}
}
}

View File

@@ -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