Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
84b27e09
Commit
84b27e09
authored
8 years ago
by
Stu Young
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #13741 from edx/estute/turn-off-coveralls-reporting
stop reporting to coveralls
parents
2f868e5e
540c12fc
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/jenkins-report.sh
+14
-29
14 additions, 29 deletions
scripts/jenkins-report.sh
with
14 additions
and
29 deletions
scripts/jenkins-report.sh
+
14
−
29
View file @
84b27e09
#!/usr/bin/env bash
set
-e
#
Note: t
his script
is in a temporary state. In an effort to get the
#
platform off of coveralls and onto codecov, we will be temporarily
#
using both. In order to no longer use coveralls, a change must be
#
made in https://github.com/edx/jenkins-job-dsl, as well as removing
#
the coveralls block below
#
T
his script
generates coverage and diff cover reports, and optionally
#
reports this data to codecov.io. The following environment variables must be
#
set in order to report to codecov:
#
CODE_COV_TOKEN: CodeCov API token
#
CI_BRANCH: The branch that the coverage report describes
# This script is used by the edx-platform-unit-coverage jenkins job.
if
[
$#
-eq
2
]
;
then
COMMIT
=
$2
else
echo
"Incorrect number of arguments passed to this script!"
echo
"Please supply the following values to this script:"
echo
"1) git hash of the commit being tested"
echo
"2) coveralls token"
exit
1
fi
source
scripts/jenkins-common.sh
# Get the diff coverage and html reports for unit tests
paver coverage
# Send the coverage data to codecov. The 'CODE_COV_TOKEN' should be
# available as an environment variable.
pip
install
codecov
==
2.0.5
codecov
--token
=
$CODE_COV_TOKEN
# THIS BLOCK WILL BE REMOVED
# Send the coverage data to coveralls. Setting 'TRAVIS_BRANCH' allows the
# data to be sorted by branch in the coveralls UI. The branch is passed as
# a param to the coverage job on jenkins.
pip
install
coveralls
==
1.0
COVERALLS_REPO_TOKEN
=
$1
TRAVIS_BRANCH
=
$COMMIT
coveralls
# Get coverage reports for bok choy
# paver bokchoy_coverage
# Test for the CodeCov API token
if
[
-z
$CODE_COV_TOKEN
]
;
then
echo
"codecov.io API token not set."
echo
"This must be set as an environment variable if order to report coverage"
else
# Send the coverage data to codecov
pip
install
codecov
==
2.0.5
codecov
--token
=
$CODE_COV_TOKEN
--branch
=
$CI_BRANCH
fi
# JUnit test reporter will fail the build
# if it thinks test results are old
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment