2012-09-02 11:37:18 +02:00
|
|
|
language: cpp
|
|
|
|
compiler:
|
|
|
|
- gcc
|
2012-09-05 06:45:39 +02:00
|
|
|
- clang
|
2014-01-04 11:37:03 +01:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# unfortunately we need this to stay within 50min timelimit given by travis.
|
|
|
|
# this also turns off the debug/warning cxxflags
|
|
|
|
- CXXFLAGS=-O2
|
|
|
|
matrix:
|
|
|
|
- MAKEFLAGS="HAVE_RULES=yes" SRCDIR=build VERIFY=1
|
|
|
|
- SRCDIR=build VERIFY=1
|
|
|
|
- MAKEFLAGS="HAVE_RULES=yes"
|
|
|
|
-
|
2013-10-12 12:40:20 +02:00
|
|
|
before_install:
|
2014-01-04 11:37:03 +01:00
|
|
|
# install needed deps
|
2013-10-12 12:40:20 +02:00
|
|
|
- sudo apt-get update -qq
|
2014-01-04 11:37:03 +01:00
|
|
|
- sudo apt-get install -qq python-pygments libqt4-core libqt4-gui libqt4-dev qt4-dev-tools qt4-qmake libxml2-utils libpcre3
|
2012-09-05 07:22:49 +02:00
|
|
|
script:
|
2014-01-04 11:37:03 +01:00
|
|
|
# compile cppcheck, default build
|
|
|
|
- make -j4
|
|
|
|
- make test -j4
|
2014-01-06 18:15:21 +01:00
|
|
|
- ./cppcheck --error-exitcode=1 -Ilib --enable=style --suppressions-list=.travis_suppressions cli gui lib build test -igui/test -itest/test.cxx
|
2014-01-04 11:37:03 +01:00
|
|
|
# compile gui
|
2013-10-07 16:58:53 +02:00
|
|
|
- cd gui
|
|
|
|
- qmake
|
2014-01-04 11:37:03 +01:00
|
|
|
- make -j4
|
|
|
|
- git clean -dfx .
|
|
|
|
# can't set this as env flags, so try again with HAVE_RULES=yes
|
|
|
|
- qmake HAVE_RULES=yes
|
|
|
|
- make -j4
|
2013-10-07 16:58:53 +02:00
|
|
|
- cd ../
|
2014-01-04 11:37:03 +01:00
|
|
|
# check htmlreport stuff
|
2013-10-05 17:03:31 +02:00
|
|
|
- ./htmlreport/test_htmlreport.py
|
2013-10-07 16:15:21 +02:00
|
|
|
- cd htmlreport
|
2013-10-12 15:49:42 +02:00
|
|
|
- ./check.sh
|
2013-10-07 16:15:21 +02:00
|
|
|
- cd ../
|
2014-01-04 11:37:03 +01:00
|
|
|
# check if DESTDIR works TODO: actually execute this
|
2013-10-07 21:38:03 +02:00
|
|
|
- mkdir install_test
|
|
|
|
- make DESTDIR=install_test install
|
2014-01-04 11:37:03 +01:00
|
|
|
# rm everything
|
|
|
|
- git clean -dfx
|
|
|
|
# check what happens if we want to install it to some other dir,
|
|
|
|
- make SRCDIR=build CFGDIR=/usr/share/cppcheck/cfg -j 4
|
|
|
|
- sudo make SRCDIR=build CFGDIR=/usr/share/cppcheck/cfg install
|
2013-12-31 15:20:30 +01:00
|
|
|
- sudo mkdir -p /usr/share/cppcheck/cfg
|
|
|
|
- sudo install -D ./cfg/* -t /usr/share/cppcheck/cfg
|
2014-01-04 11:37:03 +01:00
|
|
|
# check if it actually works:
|
2013-12-31 15:20:30 +01:00
|
|
|
- /usr/bin/cppcheck ./cli
|
2014-01-04 11:37:03 +01:00
|
|
|
# check if reduce tool compiles
|
2014-01-02 10:51:18 +01:00
|
|
|
- make reduce -j 4
|
2014-01-04 11:37:03 +01:00
|
|
|
# check if showtime=top5 works
|
|
|
|
- ./tools/test_showtimetop5.sh
|
2013-02-11 19:32:53 +01:00
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "irc.freenode.org#cppcheck"
|
|
|
|
template:
|
|
|
|
- "[%{commit} : %{author}] %{message}"
|
|
|
|
- "%{build_url}"
|
|
|
|
skip_join: true
|
2012-12-08 07:43:07 +01:00
|
|
|
|