Gibt es eine Referenz der Implementierung von WorPress (WP_UnitTestCase) mit Gitlab CI?Wordpress CI in Gitlab
Ich habe bereits versucht, die .gitlab-ci.yml
zu konfigurieren, implementiert den Build, aber kein Test ausgeführt werden.
Dies ist die .gitlab-ci.yml Datei:
image: php:5.6
variables:
# Configure mysql service (https://hub.docker.com/_/mysql/)
MYSQL_DATABASE: wordpress_tests
MYSQL_ROOT_PASSWORD: mysql
before_script:
# Install dependencies
- bash ci/docker_install.sh wordpress_tests root mysql tutum-wordpress latest
stages:
- test
# test:PHP5.3:MySQL:
# image: tetraweb/php:5.3
# script:
# - phpunit --configuration phpunit.xml.dist
test:PHP5.4:MySQL:
image: tetraweb/php:5.4
services:
- tutum/wordpress:latest
script:
- phpunit --configuration phpunit.xml.dist
# test:PHP5.6:MySQL:
# image: php:5.6
# script:
# - phpunit --configuration phpunit.xml.dist
# test:PHP7:MySQL:
# image: php:7
# script:
# - phpunit --configuration phpunit.xml.dist
Es scheint, als ob Sie nach einem Tutorial fragen, das bei SO nicht im Thema ist. Ich würde vorschlagen, dass Sie Ihre Frage mit allen Informationen erweitern: was Sie versucht haben, den Inhalt Ihrer '.gitlab-ci.yml', welcher Teil fehlschlägt, das Build-Protokoll usw. – tmt
@cascaval Ich werde mit dem Code aktualisieren , aber es funktioniert nicht. Ich fragte, weil ich es für wichtig hielt, dass die WP-Community CI in einem kostenlosen Tool wie gitlab implementiert. – StevenV