2019-09-21 18:47:15 +08:00
|
|
|
language: c cpp
|
2016-12-29 05:21:34 +08:00
|
|
|
|
2019-09-21 18:47:15 +08:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
2019-10-06 18:05:26 +08:00
|
|
|
dist: precise
|
|
|
|
env: CC=cc CXX=c++
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
compiler: clang
|
|
|
|
env: CC=clang CXX=clang++
|
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
2019-09-21 18:47:15 +08:00
|
|
|
compiler: gcc
|
2019-10-06 18:05:26 +08:00
|
|
|
env: CC=gcc CXX=g++
|
2019-09-21 18:47:15 +08:00
|
|
|
- os: linux
|
2019-10-06 18:05:26 +08:00
|
|
|
dist: bionic
|
2019-09-21 18:47:15 +08:00
|
|
|
compiler: clang
|
2019-10-06 18:05:26 +08:00
|
|
|
env: CC=clang CXX=clang++
|
2019-09-21 18:47:15 +08:00
|
|
|
- os: osx
|
|
|
|
osx_image: xcode11
|
2019-10-06 18:05:26 +08:00
|
|
|
env: CC=cc CXX=c++
|
2019-09-21 18:47:15 +08:00
|
|
|
- os: osx
|
|
|
|
osx_image: xcode9.4
|
2019-10-06 18:05:26 +08:00
|
|
|
env: CC=cc CXX=c++
|
2016-12-29 05:21:34 +08:00
|
|
|
|
2019-08-31 22:13:02 +08:00
|
|
|
script: >
|
|
|
|
if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then
|
|
|
|
git fetch --unshallow --tags --prune &&
|
|
|
|
git submodule foreach --recursive git fetch --unshallow --tags --prune &&
|
|
|
|
(if which clang-format-6.0 > /dev/null && make reformat && [[ -n $(git diff) ]];
|
|
|
|
then
|
|
|
|
echo "You must run 'make reformat' before submitting a pull request";
|
|
|
|
echo "";
|
|
|
|
git diff;
|
|
|
|
exit -1;
|
|
|
|
fi) &&
|
|
|
|
make --keep-going all && MALLOC_CHECK_=7 MALLOC_PERTURB_=42 make --keep-going check
|
2019-09-11 17:15:35 +08:00
|
|
|
else
|
|
|
|
[ ! -s cov-int/scm_log.txt ] || cat cov-int/scm_log.txt;
|
|
|
|
fi && sleep 3
|
2019-08-31 22:13:02 +08:00
|
|
|
|
2017-06-12 20:41:36 +08:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- secure: "M+W+heGGyRQJoBq2W0uqWVrpL4KBXmL0MFL7FSs7f9vmAaDyEgziUXeZRj3GOKzW4kTef3LpIeiu9SmvqSMoQivGGiomZShqPVl045o/OUgRCAT7Al1RLzEZ0efSHpIPf0PZ6byEf6GR2ML76OfuL6JxTVdnz8iVyO2sgLE1HbX1VeB+wgd/jfMeOBhCCXskfK6MLyZihfMYsiYZYSaV98ZDhDLSlzuuRIgzb0bMi8aL6AErs0WLW0NelRBeHkKPYfAUc85pdQHscgrJw6Rh/zT6+8BQ/q5f4IgWhiu4xoRg3Ngl7SNoedRQh93ADM3UG2iGl6HDFpVORaXcFWKAtuYY+kHQ0HB84BRYpQmeBuXNpltsfxQ3d1Q3u0RlE45zRvmr2+X1mFnkcNUAWISLPbsOUlriDQM8irGwRpho77/uYnRC00bJsHW//s6+uPf9zrAw1nI4f0y3PAWukGF/xs6HAI3FZPsuSSnx18Tj3Opgbc9Spop+V3hkhdiJoPGpNKTkFX4ZRXfkPgoRVJmtp4PpbpH0Ps/mCriKjMEfGGi0HcVCi0pEGLXiecdqJ5KPg5+22zNycEujQBJcNTKd9shN+R3glrbmhAxTEzGdGwxXXJ2ybwJ2PWJLMYZ7g98nLyX+uQPaA3BlsbYJHNeS5283/9pJsd9DzfHKsN2nFSc="
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
|
2019-10-06 18:05:26 +08:00
|
|
|
- ${CC} --version
|
|
|
|
- ${CXX} --version
|
2017-06-12 20:41:36 +08:00
|
|
|
|
|
|
|
addons:
|
|
|
|
coverity_scan:
|
|
|
|
project:
|
|
|
|
name: "ReOpen/libmdbx"
|
|
|
|
version: 0.1
|
|
|
|
description: "Build submitted via Travis CI"
|
|
|
|
notification_email: leo@yuriev.ru
|
2019-09-11 17:15:35 +08:00
|
|
|
build_command_prepend: "make clean && git fetch --unshallow --tags --prune && make dist"
|
|
|
|
build_command: "make -C dist all"
|
2017-06-12 20:41:36 +08:00
|
|
|
branch_pattern: coverity_scan
|