source: calamares/trunk/fuentes/ci/travis-coverity.sh @ 7538

Last change on this file since 7538 was 7538, checked in by kbut, 13 months ago

sync with github

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#! /bin/sh
2#
3# Travis CI script for weekly (cron) use:
4#  - use the coverity tool to build and and upload results
5#
6test -n "$COVERITY_SCAN_TOKEN" || exit 1
7test -n "$BUILDDIR" || exit 1
8test -n "$SRCDIR" || exit 1
9
10test -d $BUILDDIR || exit 1
11test -d $SRCDIR || exit 1
12test -f $SRCDIR/CMakeLists.txt || exit 1
13
14cd $BUILDDIR || exit 1
15
16curl -k -o coverity_tool.tar.gz \
17  -d "token=$COVERITY_SCAN_TOKEN&project=calamares%2Fcalamares" \
18  https://scan.coverity.com/download/cxx/linux64 || exit 1
19mkdir "$BUILDDIR/coveritytool"
20tar xvf coverity_tool.tar.gz -C "$BUILDDIR/coveritytool" --strip-components 2
21export PATH="$BUILDDIR/coveritytool/bin:$PATH"
22
23
24cmake -DCMAKE_BUILD_TYPE=Debug -DWEBVIEW_FORCE_WEBKIT=1 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON $SRCDIR || exit 1
25cov-build --dir cov-int make -j2
26
27tar caf calamares-ci.tar.xz cov-int
28
29curl -k --form token=$COVERITY_SCAN_TOKEN \
30  --form email=groot@kde.org \
31  --form file=@calamares-ci.tar.xz \
32  --form version="master-`date -u +%Y%m%d`" \
33  --form description="master on `date -u`" \
34  https://scan.coverity.com/builds?project=calamares%2Fcalamares
Note: See TracBrowser for help on using the repository browser.