Skip to content

Commit c152de0

Browse files
committed
Building examples on travis.
1 parent 69c4e6c commit c152de0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ branches:
55
- master
66

77
env:
8+
global:
9+
- CMAKE_ARGS_ALL="-DBUILD_EXAMPLES=ON -DPostgreSQL_TYPE_INCLUDE_DIR=/usr/share/postgresql/"
810
matrix:
911
# gcc builds
1012
- CMAKE_CC="gcc" CMAKE_CXX="g++" CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Debug" DB="sqlite"
@@ -26,8 +28,8 @@ install:
2628
- if [ "$DB" == "postgresql" ]; then sudo apt-get install libpq-dev; fi
2729

2830
before_script:
29-
- mkdir build && cd build && cmake -DCMAKE_C_COMPILER=$CMAKE_CC -DCMAKE_CXX_COMPILER=$CMAKE_CXX $CMAKE_ARGS -DTEST_DATABASE=$DB -DPostgreSQL_TYPE_INCLUDE_DIR=/usr/share/postgresql/ ..
30-
- if [ "$DB" == "postgresql" ]; then psql -c "create database $USER;" -U postgres; fi
31+
- mkdir build && cd build && cmake -DCMAKE_C_COMPILER=$CMAKE_CC -DCMAKE_CXX_COMPILER=$CMAKE_CXX $CMAKE_ARGS $CMAKE_ARGS_ALL -DTEST_DATABASE=$DB ..
32+
- if [ "$DB" == "postgresql" ]; then psql -c "CREATE DATABASE $USER;" -U postgres; fi
3133

3234
script:
3335
- make -j4 && ctest -V

0 commit comments

Comments
 (0)