From b3b2782358d5a309fcb88669cf67b9677c1a7b2f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 26 Apr 2017 16:00:03 +0300 Subject: [PATCH] add basic schema test back to CI --- .gitlab-ci.yml | 17 +++++++++-------- utils/gitlab-ci/check-schema.sh | 5 +++++ 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 utils/gitlab-ci/check-schema.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ea1437b8..4c123cae 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/utils/gitlab-ci/check-schema.sh b/utils/gitlab-ci/check-schema.sh new file mode 100644 index 00000000..a7e63ae0 --- /dev/null +++ b/utils/gitlab-ci/check-schema.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +export PGPASSWORD=test + +psql -h localhost -q -U test test < schema/ttrss_schema_pgsql.sql -- 2.39.2