We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dd8c9f commit 9c5d569Copy full SHA for 9c5d569
1 file changed
.travis.yml
@@ -4,6 +4,11 @@ branches:
4
only:
5
- master
6
7
+dist: trusty
8
+
9
+services:
10
+ - postgresql
11
12
env:
13
global:
14
- CMAKE_ARGS_ALL="-DBUILD_EXAMPLES=ON -DPostgreSQL_TYPE_INCLUDE_DIR=/usr/share/postgresql/"
@@ -36,7 +41,7 @@ install:
36
41
37
42
before_script:
38
43
- mkdir build && cd build && cmake -DCMAKE_C_COMPILER=$CMAKE_CC -DCMAKE_CXX_COMPILER=$CMAKE_CXX $CMAKE_ARGS $CMAKE_ARGS_ALL -DTEST_DATABASE=$DB ..
39
- - if [ "$DB" == "postgresql" ]; then psql -c "CREATE DATABASE $USER;" -U postgres; fi
44
+ - if [ "$DB" == "postgresql" ]; then psql -c "CREATE DATABASE $USER;" -U postgres || true; fi
40
45
- if [ "$DB" == "mysql" ]; then mysql -e "CREATE DATABASE test;"; fi
46
47
script:
0 commit comments