From 6eca26a4cfc7aa11fa85326f4c1baa61d4eef5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Sat, 12 Jan 2019 16:30:47 +0100 Subject: [PATCH] travis: add job making sure cppcheck builds on ubuntu precise (12.04) with gcc and clang --- .travis.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index f544c5fdf..d1ddcd0c1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,11 @@ env: - CXXFLAGS="${CXXFLAGS} -DCHECK_INTERNAL" - CXXFLAGS="${CXXFLAGS} -DCHECK_INTERNAL" MAKEFLAGS="HAVE_RULES=yes" SRCDIR=build VERIFY=1 +before_install: +# install needed deps + - sudo apt-get update -qq + - sudo apt-get install -qq python-pygments qt5-default qt5-qmake qtbase5-dev qtcreator libxml2-utils libpcre3 gdb unzip wx-common xmlstarlet + matrix: # do notify immediately about it when a job of a build fails. fast_finish: true @@ -129,10 +134,17 @@ matrix: - make -s dmake -j2 - make -s run-dmake - git diff --exit-code -before_install: -# install needed deps - - sudo apt-get update -qq - - sudo apt-get install -qq python-pygments qt5-default qt5-qmake qtbase5-dev qtcreator libxml2-utils libpcre3 gdb unzip wx-common xmlstarlet +# check if cppcheck builds on precise + - name: "make ubuntu 12.04 precise" + compiler: gcc + dist: precise + before_install: + - sudo apt-get update -qq + - sudo apt-get install libxml2-utils libpcre3 + script: + - CXX=g++ CXXFLAGS="${ORIGINAL_CXXFLAGS}" make cppcheck testrunner -j 2 + - make clean + - CXX=clang++ CXXFLAGS="${ORIGINAL_CXXFLAGS}" make cppcheck testrunner -j 2 script: # fail the entire job as soon as one of the subcommands exits non-zero to save time and resources