From e0b3922125478829e33546ad3eedcb02bfd07dd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 22 Aug 2016 18:17:30 +0200 Subject: [PATCH] Enable MySQL and PostgreSQL testing on Travis MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- .travis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d1b2bcc7a0..fa62eda892 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,10 +11,12 @@ env: global: - CTEST_OUTPUT_ON_FAILURE=1 before_script: + - psql -c 'create database smsd;' -U postgres + - mysql -uroot -e "create database smsd;" - mkdir _build - cd _build script: - - if [ ${COVERITY_SCAN_BRANCH} != 1 ] ; then cmake .. -DCMAKE_C_COMPILER=$CC -DCOVERAGE=ON -DCMAKE_BUILD_TYPE=Continuous $ARGS ; fi + - if [ ${COVERITY_SCAN_BRANCH} != 1 ] ; then cmake .. -DCMAKE_C_COMPILER=$CC -DCOVERAGE=ON -DCMAKE_BUILD_TYPE=Continuous -DMYSQL_TESTING=on -DPOSTGRESQL_TESTING=ON -DMYSQL_USER=root -DMYSQL_PASSWORD= -DPSQL_USER=postgres -DPSQL_PASSWORD= $ARGS ; fi - if [ ${COVERITY_SCAN_BRANCH} != 1 ] ; then make ; fi - if [ ${COVERITY_SCAN_BRANCH} != 1 ] ; then make test ; fi after_success: @@ -56,3 +58,6 @@ matrix: - os: linux compiler: gcc env: ARGS="-DENABLE_GETOPT=OFF" +services: + - mysql + - postgresql