Skip to content

Commit

Permalink
Enable MySQL and PostgreSQL testing on Travis
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Aug 22, 2016
1 parent 7930656 commit e0b3922
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -56,3 +58,6 @@ matrix:
- os: linux
compiler: gcc
env: ARGS="-DENABLE_GETOPT=OFF"
services:
- mysql
- postgresql

0 comments on commit e0b3922

Please sign in to comment.