2015-10-09 23:46:19 +01:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
|
|
compiler:
|
|
|
|
|
- gcc
|
2015-10-09 23:50:51 +01:00
|
|
|
- clang
|
2015-10-09 23:46:19 +01:00
|
|
|
|
2016-08-08 15:23:27 +02:00
|
|
|
addons:
|
|
|
|
|
apt:
|
|
|
|
|
packages:
|
|
|
|
|
- cppcheck
|
2019-07-24 01:08:30 -05:00
|
|
|
- valgrind
|
2016-08-08 15:23:27 +02:00
|
|
|
|
2015-10-09 23:46:19 +01:00
|
|
|
os:
|
|
|
|
|
- linux
|
2015-10-09 23:50:51 +01:00
|
|
|
- osx
|
2015-10-09 23:46:19 +01:00
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
|
- echo $LANG
|
|
|
|
|
- echo $LC_ALL
|
2017-07-10 12:01:56 +03:00
|
|
|
- set -e
|
2015-10-09 23:46:19 +01:00
|
|
|
|
|
|
|
|
install:
|
|
|
|
|
- sh autogen.sh
|
|
|
|
|
|
|
|
|
|
before_script:
|
2017-07-19 15:22:36 +03:00
|
|
|
- ./configure
|
2015-10-09 23:46:19 +01:00
|
|
|
|
|
|
|
|
script:
|
|
|
|
|
- make
|
|
|
|
|
|
|
|
|
|
after_success:
|
2019-07-24 13:30:10 -05:00
|
|
|
- make check ; result=$?
|
2019-07-24 01:08:30 -05:00
|
|
|
- if [ $result != 0 ]; then
|
|
|
|
|
cat tests/*.log;
|
|
|
|
|
fi
|
2019-07-24 13:30:10 -05:00
|
|
|
- if type cppcheck &> /dev/null ; then cppcheck --error-exitcode=1 --quiet *.h *.c tests/ ; fi
|
|
|
|
|
- exit $result
|