travis kick - add maria with correct conditional
@@ -44,23 +44,23 @@ jobs:
- mvn -s .lgtm.settings.xml clean package;
- npm run-script test --prefix ./waltz-ng
-# - stage: Test
-# env: DB=postgres
-# services:
-# - postgresql
-# before_script:
-# - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'DROP DATABASE IF EXISTS waltz;' -U postgres; fi"
-# - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'CREATE DATABASE waltz;' -U postgres; fi"
-# script:
-# - mvn -s .lgtm.settings.xml -Plgtm-postgres clean package;
-# - npm run-script test --prefix ./waltz-ng
+ - stage: Test
+ env: DB=postgres
+ services:
+ - postgresql
+ before_script:
+ - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'DROP DATABASE IF EXISTS waltz;' -U postgres; fi"
+ - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'CREATE DATABASE waltz;' -U postgres; fi"
+ script:
+ - mvn -s .lgtm.settings.xml -Plgtm-postgres clean package;
+ - npm run-script test --prefix ./waltz-ng
- stage: Test
env: DB=mariadb
addons:
mariadb: 10.1
before_script:
- - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE IF NOT EXISTS waltz; CHARACTER SET=utf8'; fi"
+ - sh -c "if [ '$DB' = 'mariadb' ]; then mysql -e 'CREATE DATABASE IF NOT EXISTS waltz; CHARACTER SET=utf8'; fi"
script:
- mvn -s .lgtm.settings.xml -Plgtm-mariadb clean package;
- npm run-script test --prefix ./waltz-ng
\ No newline at end of file
