aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-02-11 11:08:43 +0000
committerMario <mario@mariovavti.com>2022-02-11 11:08:43 +0000
commitdc3cec06ca40fa1de695847a24eb06b1d220203b (patch)
tree5421528d70ddf2b8440524a58c7ba5d22602b17b /.gitlab-ci.yml
parent5a7688e09965856e99e058b3284b5fe426bfbb45 (diff)
downloadvolse-hubzilla-dc3cec06ca40fa1de695847a24eb06b1d220203b.tar.gz
volse-hubzilla-dc3cec06ca40fa1de695847a24eb06b1d220203b.tar.bz2
volse-hubzilla-dc3cec06ca40fa1de695847a24eb06b1d220203b.zip
restructure
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml17
1 files changed, 14 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1628949f9..15ebd155c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -48,14 +48,21 @@ before_script:
# php.ini settings
- echo 'xdebug.mode=coverage' >> /usr/local/etc/php/php.ini
-# hidden job definition with template for MySQL/MariaDB
-.job_template_mysql: &job_definition_mysql
+# hidden job definition with template for PHP
+.job_template_php: &job_definition_php
stage: test
script:
+ - vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-text
+
+
+# hidden job definition with template for MySQL/MariaDB
+#.job_template_mysql: &job_definition_mysql
+# stage: test
+# script:
# - echo "USE $MYSQL_DATABASE; $(cat ./install/schema_mysql.sql)" | mysql --user=root --password="$MYSQL_ROOT_PASSWORD" --host=mysql "$MYSQL_DATABASE"
# - echo "SHOW DATABASES;" | mysql --user=root --password="$MYSQL_ROOT_PASSWORD" --host=mysql "$MYSQL_DATABASE"
# - echo "USE $MYSQL_DATABASE; SHOW TABLES;" | mysql --user=root --password="$MYSQL_ROOT_PASSWORD" --host=mysql "$MYSQL_DATABASE"
- - vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-text
+# - vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-text
# hidden job definition with template for PostgreSQL
#.job_template_postgres: &job_definition_postgres
@@ -87,6 +94,10 @@ before_script:
- tests/results/
+# PHP8.0
+php8.0:
+ <<: *job_definition_php
+
# PHP8.0 with MySQL 5.7
#php8.0_mysql5.7:
# <<: *job_definition_mysql