2012-09-02 11:37:18 +02:00
|
|
|
language: cpp
|
2019-03-20 15:30:01 +01:00
|
|
|
dist: xenial
|
2014-03-17 13:23:29 +01:00
|
|
|
|
2012-09-02 11:37:18 +02:00
|
|
|
compiler:
|
2014-03-23 19:14:31 +01:00
|
|
|
- gcc
|
2017-04-02 19:32:00 +02:00
|
|
|
- clang
|
2014-03-17 13:23:29 +01:00
|
|
|
|
2014-01-04 11:37:03 +01:00
|
|
|
env:
|
|
|
|
global:
|
2021-02-21 14:17:02 +01:00
|
|
|
- ORIGINAL_CXXFLAGS="-pedantic -Wall -Wextra -Wcast-qual -Wno-deprecated-declarations -Wfloat-equal -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Wpacked -Wredundant-decls -Wundef -Wno-shadow -Wno-missing-field-initializers -Wno-missing-braces -Wno-sign-compare -Wno-multichar -D_GLIBCXX_DEBUG -g"
|
2015-11-10 20:44:24 +01:00
|
|
|
# unfortunately we need this to stay within 50min timelimit given by travis.
|
2017-06-05 23:10:28 +02:00
|
|
|
- CXXFLAGS="${ORIGINAL_CXXFLAGS} -O2 -march=native -Wstrict-aliasing=2 -Werror=strict-aliasing"
|
2018-05-13 11:08:48 +02:00
|
|
|
- CPPCHECK=${TRAVIS_BUILD_DIR}/cppcheck
|
2014-01-04 11:37:03 +01:00
|
|
|
matrix:
|
2014-05-24 10:22:59 +02:00
|
|
|
- CXXFLAGS="${CXXFLAGS} -DCHECK_INTERNAL"
|
2019-06-23 13:43:09 +02:00
|
|
|
- CXXFLAGS="${CXXFLAGS} -DCHECK_INTERNAL" MAKEFLAGS="HAVE_RULES=yes" MATCHCOMPILER=yes VERIFY=1
|
2014-03-17 13:23:29 +01:00
|
|
|
|
2019-01-12 16:30:47 +01:00
|
|
|
before_install:
|
2022-05-31 19:53:50 +02:00
|
|
|
# install needed deps
|
|
|
|
- travis_retry sudo apt-get update -qq
|
|
|
|
- travis_retry sudo apt-get install -qq libxml2-utils libpcre3 gdb unzip wx-common xmlstarlet liblua5.3-dev libcurl3 libcairo2-dev libsigc++-2.0-dev tidy libopencv-dev
|
2019-01-12 16:30:47 +01:00
|
|
|
|
2014-01-17 20:46:20 +01:00
|
|
|
matrix:
|
2014-03-17 13:23:29 +01:00
|
|
|
# do notify immediately about it when a job of a build fails.
|
2014-01-17 20:46:20 +01:00
|
|
|
fast_finish: true
|
2019-01-11 19:47:17 +01:00
|
|
|
# defined extra jobs that run besides what is configured in the build matrix
|
2019-01-09 09:54:46 +01:00
|
|
|
include:
|
2020-05-07 18:55:22 +02:00
|
|
|
|
2019-01-09 09:54:46 +01:00
|
|
|
# check a lot of stuff that only needs to be checked in a single configuration
|
|
|
|
- name: "misc"
|
|
|
|
compiler: clang
|
|
|
|
script:
|
2020-12-26 16:55:30 +01:00
|
|
|
- make -j$(nproc) -s
|
2019-01-09 09:54:46 +01:00
|
|
|
# check if DESTDIR works TODO: actually execute this
|
|
|
|
- mkdir install_test
|
|
|
|
- echo $CXXFLAGS
|
2019-08-17 17:25:41 +02:00
|
|
|
- make -s DESTDIR=install_test FILESDIR=/usr/share/cppcheck install
|
2019-01-09 09:54:46 +01:00
|
|
|
# rm everything
|
|
|
|
- git clean -dfx
|
|
|
|
# check what happens if we want to install it to some other dir,
|
|
|
|
- echo $CXXFLAGS
|
2020-12-26 16:55:30 +01:00
|
|
|
- make -s MATCHCOMPILER=yes FILESDIR=/usr/share/cppcheck -j$(nproc)
|
2019-08-17 10:53:07 +02:00
|
|
|
- sudo make MATCHCOMPILER=yes FILESDIR=/usr/share/cppcheck install
|