]> git.wh0rd.org - tt-rss.git/commitdiff
add basic schema test back to CI
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Wed, 26 Apr 2017 13:00:03 +0000 (16:00 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Wed, 26 Apr 2017 13:00:03 +0000 (16:00 +0300)
.gitlab-ci.yml
utils/gitlab-ci/check-schema.sh [new file with mode: 0644]

index ea1437b80c9bc5096ae33d8412cfbc3d22466df7..4c123caea3d03593b9b9b60f2ff69cf44cf663a4 100644 (file)
@@ -1,15 +1,16 @@
-image: php:5.6\r
-\r
 before_script:\r
   - curl -o /usr/bin/phpmd -L http://static.phpmd.org/php/2.6.0/phpmd.phar\r
   - chmod +x /usr/bin/phpmd\r
 \r
-stages:\r
-  - test\r
-\r
-jobs:\r
-  when: manual\r
-  stage: test\r
+phpmd:\r
+  image: php:5.6\r
   script:\r
     - sh utils/gitlab-ci/phpmd.sh\r
 \r
+schema:\r
+  image: fox/selenium-ci\r
+  when: manual\r
+  script:\r
+    - /etc/init.d/postgresql start\r
+    - /usr/local/sbin/init-database.sh\r
+    - sh ./utils/gitlab-ci/check-schema.sh\r
diff --git a/utils/gitlab-ci/check-schema.sh b/utils/gitlab-ci/check-schema.sh
new file mode 100644 (file)
index 0000000..a7e63ae
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+export PGPASSWORD=test
+
+psql -h localhost -q -U test test < schema/ttrss_schema_pgsql.sql