Skip to content

Commit

Permalink
Merge pull request #91 from mantidproject/feature/10636_coverity_builds
Browse files Browse the repository at this point in the history
Fix coverity builds
  • Loading branch information
martyngigg committed Dec 9, 2014
2 parents c9a6f7f + 8334731 commit 47016be
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Code/Mantid/Build/Jenkins/buildscript
Expand Up @@ -95,6 +95,24 @@ fi
###############################################################################
$SCL_ON_RHEL6 "cmake -DCMAKE_BUILD_TYPE=${BUILD_CONFIG} -DENABLE_CPACK=ON -DMAKE_VATES=ON -DParaView_DIR=${PARAVIEW_DIR} -DDOCS_HTML=ON ${PACKAGINGVARS} ../Code/Mantid"

###############################################################################
# Coverity build should exit early
###############################################################################
if [[ ${JOB_NAME} == *coverity_build_and_submit* ]]; then
${COVERITY_DIR}/cov-build --dir cov-int scl enable mantidlibs "make -j${BUILD_THREADS}"
tar czvf mantid.tgz cov-int
status=$(curl --form token=$COVERITY_TOKEN --form email=mantidproject@gmail.com \
--form file=@mantid.tgz --form version=$GIT_COMMIT \
https://scan.coverity.com/builds?project=mantidproject%2Fmantid)
status=$(echo ${status} | sed -e 's/^ *//' -e 's/ *$//')
if [[ -z $status ]]; then
exit 0
else
echo "$status"
exit 1
fi
fi

###############################################################################
# Build step
###############################################################################
Expand Down

0 comments on commit 47016be

Please sign in to comment.