aboutsummaryrefslogtreecommitdiff
path: root/travis/after_success.sh
blob: 095bafbd0da3067e33148a14293844469ff75822 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

set -e

if [ "$BUILD_NAME" != "linux_clang" ]; then
    # coveralls falsely reports .c-files in the build directories as having 100% coverage so we exclude them
    coveralls --build-root src --extension .c --extension .cpp \
        --exclude build_autoconf --exclude build_cmake --exclude test --exclude examples \
        --exclude include/proj/internal/nlohmann
fi

echo "$TRAVIS_SECURE_ENV_VARS"
./travis/build_docs.sh
# Only build and publish docs when changes are made on most recent maintenance branch
if test "$TRAVIS_SECURE_ENV_VARS" = "true" -a "$TRAVIS_BRANCH" = "7.2"; 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