Last active
August 29, 2015 14:20
-
-
Save springmeyer/a14ea65d84ab841c0dd0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COVERITY_VERSION="7.6.0" | |
export CC=/usr/bin/clang | |
export CXX=/usr/bin/clang++ | |
# https://scan.coverity.com/download | |
# https://scan.coverity.com/download/cxx/mac-OS-X | |
export PATH=${HOME}/cov-analysis-macosx-${COVERITY_VERSION}/bin/:$PATH | |
RESULTS_DIR="$(pwd)/cov-int" | |
rm -rf $RESULTS_DIR/* | |
mkdir -p $RESULTS_DIR | |
rm -rf build | |
rm -f ${HOME}/cov-analysis-macosx-${COVERITY_VERSION}/config/templates/.DS_Store | |
cov-configure --template --compiler clangcc --comptype clangcxxcc | |
# build | |
make Makefile/project | |
cov-build -dir $RESULTS_DIR make -C build/osx BUILDTYPE=Release everything -j8 V=1 | |
rm -f mapbox-gl-native-coverity.tgz | |
DESCRIBE=$(git describe) | |
# NOTE: cov-int must be relative name not absolute | |
# https://scan.coverity.com/projects/5018?tab=overview | |
tar czf mapbox-gl-native-coverity.tgz cov-int | |
curl --form token=${COVERITY_TOKEN_MBGL} \ | |
--form [email protected] \ | |
--form [email protected] \ | |
--form version="${DESCRIBE}" \ | |
--form description="Mapbox GL" \ | |
https://scan.coverity.com/builds?project=mapbox%2Fmapbox-gl-native |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment