Skip to content

Commit 2b1c451

Browse files
committed
On Travis run tests also without working database server
1 parent 0cd78b2 commit 2b1c451

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,8 @@ matrix:
382382
env: DB=MySQL VERSION=4.1.22 CONC_DB=MariaDB CONC_VERSION=3.0.6
383383
- perl: "5.22"
384384
env: DB=MySQL VERSION=4.1.22 SERVER=system
385+
- perl: "5.22"
386+
env: SERVER=none
385387

386388
addons:
387389
apt:
@@ -505,6 +507,9 @@ before_script:
505507
elif [ -n "$CONC_DB" ] || [ "$SERVER" = "system" ]; then
506508
export DBD_MARIADB_TESTHOST=127.0.0.1 ;
507509
export DBD_MARIADB_TESTPORT=3306 ;
510+
elif [ "$SERVER" = "none" ]; then
511+
export DBD_MARIADB_TESTHOST=none ;
512+
export DBD_MARIADB_TESTPORT=1 ;
508513
fi
509514
- if [ -n "$CONC_DB" ]; then
510515
if [ -x $HOME/conc/bin/mysql_config ]; then
@@ -528,7 +533,9 @@ before_script:
528533
fi
529534
- export HARNESS_OPTIONS=j4
530535
- export RELEASE_TESTING=1
531-
- export CONNECTION_TESTING=1
536+
- if [ "$SERVER" != "none" ]; then
537+
export CONNECTION_TESTING=1 ;
538+
fi
532539

533540
script:
534541
- make realclean || true

0 commit comments

Comments
 (0)