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