Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
84b27e09
Commit
84b27e09
authored
Oct 17, 2016
by
Stu Young
Committed by
GitHub
Oct 17, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13741 from edx/estute/turn-off-coveralls-reporting
stop reporting to coveralls
parents
2f868e5e
540c12fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
29 deletions
+14
-29
scripts/jenkins-report.sh
+14
-29
No files found.
scripts/jenkins-report.sh
View file @
84b27e09
#!/usr/bin/env bash
#!/usr/bin/env bash
set
-e
set
-e
#
Note: this script is in a temporary state. In an effort to get the
#
This script generates coverage and diff cover reports, and optionally
#
platform off of coveralls and onto codecov, we will be temporarily
#
reports this data to codecov.io. The following environment variables must be
#
using both. In order to no longer use coveralls, a change must be
#
set in order to report to codecov:
#
made in https://github.com/edx/jenkins-job-dsl, as well as removing
#
CODE_COV_TOKEN: CodeCov API token
#
the coveralls block below
#
CI_BRANCH: The branch that the coverage report describes
# This script is used by the edx-platform-unit-coverage jenkins job.
# 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
source
scripts/jenkins-common.sh
# Get the diff coverage and html reports for unit tests
# Get the diff coverage and html reports for unit tests
paver coverage
paver coverage
# Send the coverage data to codecov. The 'CODE_COV_TOKEN' should be
# Test for the CodeCov API token
# available as an environment variable.
if
[
-z
$CODE_COV_TOKEN
]
;
then
pip install
codecov
==
2.0.5
echo
"codecov.io API token not set."
codecov
--token
=
$CODE_COV_TOKEN
echo
"This must be set as an environment variable if order to report coverage"
else
# THIS BLOCK WILL BE REMOVED
# Send the coverage data to codecov
# Send the coverage data to coveralls. Setting 'TRAVIS_BRANCH' allows the
pip install
codecov
==
2.0.5
# data to be sorted by branch in the coveralls UI. The branch is passed as
codecov
--token
=
$CODE_COV_TOKEN
--branch
=
$CI_BRANCH
# a param to the coverage job on jenkins.
fi
pip install
coveralls
==
1.0
COVERALLS_REPO_TOKEN
=
$1
TRAVIS_BRANCH
=
$COMMIT
coveralls
# Get coverage reports for bok choy
# paver bokchoy_coverage
# JUnit test reporter will fail the build
# JUnit test reporter will fail the build
# if it thinks test results are old
# if it thinks test results are old
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment