add basic schema test back to CI

This commit is contained in:
Andrew Dolgov 2017-04-26 16:00:03 +03:00
parent e552bb0bf6
commit b3b2782358
2 changed files with 14 additions and 8 deletions

View File

@ -1,15 +1,16 @@
image: php:5.6
before_script:
- curl -o /usr/bin/phpmd -L http://static.phpmd.org/php/2.6.0/phpmd.phar
- chmod +x /usr/bin/phpmd
stages:
- test
jobs:
when: manual
stage: test
phpmd:
image: php:5.6
script:
- sh utils/gitlab-ci/phpmd.sh
schema:
image: fox/selenium-ci
when: manual
script:
- /etc/init.d/postgresql start
- /usr/local/sbin/init-database.sh
- sh ./utils/gitlab-ci/check-schema.sh

View File

@ -0,0 +1,5 @@
#!/bin/sh
export PGPASSWORD=test
psql -h localhost -q -U test test < schema/ttrss_schema_pgsql.sql