cereal/updatecoverage.sh
2013-07-10 13:55:21 -07:00

19 lines
317 B
Bash
Executable File

#!/usr/bin/env bash
# Updates the coverage documentation, and copies it into the appropriate place
# in the gh-pages branch.
set -e
tempdir=`mktemp -d`
make coverage COVERAGE_OUTPUT=${tempdir}/coverage
git checkout gh-pages
rm -rf assets/coverage
cp -r ${tempdir}/coverage* assets/coverage/
rm -rf ${tempdir}