mirror of
https://github.com/pgpointcloud/pointcloud.git
synced 2025-12-08 20:36:04 +00:00
Merge pull request #177 from elemoine/travis-libght
Build and test with libght in Travis
This commit is contained in:
commit
1fc8d0fdcf
4
.install-libght.sh
Normal file
4
.install-libght.sh
Normal 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
|
||||
19
.travis.yml
19
.travis.yml
@ -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
12
tools/build-install.sh
Executable 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
5
tools/valgrind.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
valgrind --leak-check=full --error-exitcode=1 lib/cunit/cu_tester
|
||||
Loading…
x
Reference in New Issue
Block a user