From aa7fe33e5cff5bdc0d7ee8d96ec5c5681932eb2b Mon Sep 17 00:00:00 2001 From: Martijn Vermaat <martijn@vermaat.name> Date: Sat, 10 Oct 2015 12:30:42 +0200 Subject: [PATCH] Use IF (NOT) EXISTS in Travis CI db create --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d894c91e..a3e0d71c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,8 @@ before_install: install: - pip install . before_script: - - psql -c 'create database mutalyzer_test;' -U postgres - - mysql -e 'create database mutalyzer_test;' + - psql -c 'DROP DATABASE IF EXISTS mutalyzer_test;' -U postgres + - psql -c 'CREATE DATABASE mutalyzer_test;' -U postgres + - mysql -e 'CREATE DATABASE IF NOT EXISTS mutalyzer_test;' script: - py.test -- GitLab