diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-06-07 23:11:03 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-06-08 13:56:53 +0200 |
| commit | 44d16a9f68bcdb1cbf82018567077cc0619b8728 (patch) | |
| tree | ed3d5ecf780ddbb1f3a92cf8bba79c465aa71830 /travis | |
| parent | c1a70986674e8129a2a0d1779896386c1fea6a80 (diff) | |
| download | PROJ-44d16a9f68bcdb1cbf82018567077cc0619b8728.tar.gz PROJ-44d16a9f68bcdb1cbf82018567077cc0619b8728.zip | |
Add a scripts/gen_html_coverage.sh to generate local report of code coverage with lcov/genhtml
Diffstat (limited to 'travis')
| -rwxr-xr-x | travis/after_success.sh | 6 | ||||
| -rwxr-xr-x | travis/deploy_html_coverage.sh | 22 | ||||
| -rwxr-xr-x | travis/linux_gcc/before_install.sh | 5 |
3 files changed, 31 insertions, 2 deletions
diff --git a/travis/after_success.sh b/travis/after_success.sh index 27a0c526..1b442ddb 100755 --- a/travis/after_success.sh +++ b/travis/after_success.sh @@ -10,4 +10,10 @@ if test "$TRAVIS_SECURE_ENV_VARS" = "true" -a "$TRAVIS_BRANCH" = "master"; then echo "publish website"; ./travis/add_deploy_key.sh; ./travis/deploy_website.sh $TRAVIS_BUILD_DIR/docs/build /tmp; + + # Disabled: see discussion of https://github.com/OSGeo/proj.4/pull/1035 + # if test "$BUILD_NAME" = "linux_gcc"; then + # ./scripts/gen_html_coverage.sh + # ./travis/deploy_html_coverage.sh + # fi fi diff --git a/travis/deploy_html_coverage.sh b/travis/deploy_html_coverage.sh new file mode 100755 index 00000000..78236882 --- /dev/null +++ b/travis/deploy_html_coverage.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# Not used currently. See discussion of https://github.com/OSGeo/proj.4/pull/1035 + +set -eu + +mkdir proj-coverage +cd proj-coverage +git init +git config user.email "projbot@proj.bot" +git config user.name "PROJ coveragebot" +git config push.default matching +git remote add origin git@github.com:OSGeo/proj-coverage.git + +cp -r ../coverage_html . +echo "Results of coverage of PROJ test suite" > README.md +echo "See http://rawgithub.com/OSGeo/proj-coverage/master/coverage_html/index.html" >> README.md +git add -A > /dev/null +git commit -m "update with results of commit https://github.com/OSGeo/proj.4/commit/$TRAVIS_COMMIT" +git push -f origin master + +cd .. diff --git a/travis/linux_gcc/before_install.sh b/travis/linux_gcc/before_install.sh index 55516cd1..5e1ee1b8 100755 --- a/travis/linux_gcc/before_install.sh +++ b/travis/linux_gcc/before_install.sh @@ -1,11 +1,12 @@ #!/bin/bash +set -e + ./travis/before_install.sh sudo apt-get update -qq sudo apt-get install -y cppcheck - -set -e +sudo apt-get install -qq lcov scripts/cppcheck.sh |
