jenkins-report.sh 637 Bytes
Newer Older
1
#!/usr/bin/env bash
Christine Lytwynec committed
2 3 4

# This script is used by the edx-platform-unit-coverage jenkins job.

5 6
source scripts/jenkins-common.sh

7
# Get the diff coverage and html reports for unit tests
8
paver coverage
9

Christine Lytwynec committed
10 11 12 13 14 15
# 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
COVERALLS_REPO_TOKEN=$1 TRAVIS_BRANCH=$2 coveralls

16 17 18
# Get coverage reports for bok choy
# paver bokchoy_coverage

19 20 21
# JUnit test reporter will fail the build
# if it thinks test results are old
touch `find . -name *.xml` || true