Merge pull request #177 from elemoine/travis-libght

Build and test with libght in Travis
This commit is contained in:
Éric Lemoine 2017-05-19 18:02:02 +02:00 committed by GitHub
commit 1fc8d0fdcf
4 changed files with 30 additions and 10 deletions

4
.install-libght.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
set -ex
git clone https://github.com/pramsey/libght.git
cd libght; cmake .; make; sudo make install; sudo ldconfig

View File

@ -10,20 +10,19 @@ install:
- sudo apt-get install -qq g++-4.8
- export CXX="g++-4.8"
- sh .install-lazperf.sh
- sh .install-libght.sh
- npm install -g eclint@1.1.5
addons:
postgresql: "9.3" # for "installcheck"
before_script:
- npm install -g eclint@1.1.5
- eclint check * */* */cunit/*
- ./autogen.sh
# Note: Valgrind currently reports many problems when libght is enabled. So for
# now, and until the problems are fixed, we just run the unit tests with libght
# enabled.
script:
- ./configure CFLAGS="-Wall -Werror -O2 -g" --with-lazperf=/usr/local/
- make
- make check
- valgrind --leak-check=full --error-exitcode=1 lib/cunit/cu_tester
- sudo make install
- eclint check * */* */cunit/*
- ./tools/build-install.sh --with-lazperf=/usr/local --with-libght=/usr/local && make check
- ./tools/build-install.sh --with-lazperf=/usr/local --without-libght && ./tools/valgrind.sh
- make installcheck || { cat pgsql/regression.diffs && false; }
- cd tools/benchmark_compression && sh compression_benchmark.sh
- (cd tools/benchmark_compression && sh compression_benchmark.sh)

12
tools/build-install.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
set -e
if [[ -f config.mk ]]; then
make clean maintainer-clean
fi
./autogen.sh
./configure CFLAGS="-Wall -Werror -O2 -g" $@
make
sudo make install

5
tools/valgrind.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
set -e
valgrind --leak-check=full --error-exitcode=1 lib/cunit/cu_tester