summaryrefslogtreecommitdiff
path: root/libs/libmdbx/src/.travis.yml
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-12-06 17:15:42 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-12-06 17:15:42 +0300
commit5077fc56fbde196cdf821e044b607d39a34ce258 (patch)
tree9d46e9d8ddc22696e48d5073ef046ce3aebae85f /libs/libmdbx/src/.travis.yml
parent3bb16e798cb51d5764aacbefd4edf26f52d8c4f0 (diff)
libmdbx: upgrade to 0.4.0
Diffstat (limited to 'libs/libmdbx/src/.travis.yml')
-rw-r--r--libs/libmdbx/src/.travis.yml55
1 files changed, 43 insertions, 12 deletions
diff --git a/libs/libmdbx/src/.travis.yml b/libs/libmdbx/src/.travis.yml
index e46991f597..c1bd6da5e9 100644
--- a/libs/libmdbx/src/.travis.yml
+++ b/libs/libmdbx/src/.travis.yml
@@ -1,15 +1,44 @@
-language: c
-dist: xenial
+language: c cpp
-compiler:
-- gcc
-- clang
+matrix:
+ include:
+ - os: linux
+ dist: trusty
+ env: CC=cc CXX=c++
+ - os: linux
+ dist: trusty
+ compiler: clang
+ env: CC=clang CXX=clang++
+ - os: linux
+ dist: xenial
+ compiler: gcc
+ env: CC=gcc CXX=g++
+ - os: linux
+ dist: bionic
+ compiler: clang
+ env: CC=clang CXX=clang++
+ - os: osx
+ osx_image: xcode11
+ env: CC=cc CXX=c++
+ - os: osx
+ osx_image: xcode9.4
+ env: CC=cc CXX=c++
-os:
-- linux
-- osx
-
-script: if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then make all check; fi
+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
+ else
+ [ ! -s cov-int/scm_log.txt ] || cat cov-int/scm_log.txt;
+ fi && sleep 3
env:
global:
@@ -17,6 +46,8 @@ env:
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-
+ - ${CC} --version
+ - ${CXX} --version
addons:
coverity_scan:
@@ -25,6 +56,6 @@ addons:
version: 0.1
description: "Build submitted via Travis CI"
notification_email: leo@yuriev.ru
- build_command_prepend: "make clean"
- build_command: "make all -j 2"
+ build_command_prepend: "git fetch --unshallow --tags --prune && make dist"
+ build_command: "make MDBX_OPTIONS=-DMDBX_DEBUG=2 -C dist all"
branch_pattern: coverity_scan