From 31810cf869a078bd1be87f0a865788672b6cb229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Fri, 20 Sep 2024 21:54:21 +0200 Subject: [PATCH] test --- .woodpecker/test.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index e715698..537f37b 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -2,9 +2,20 @@ when: - event: push branch: woodpecker +services: + - name: database + image: mysql + environment: + - MYSQL_DATABASE: wordpress_tests + - MYSQL_ROOT_PASSWORD: mysql + steps: - name: build image: wordpressdevelop/phpunit commands: - - echo "This is the build step" - - echo "binary-data-123" > executable + - apt-get clean + - apt-get -yqq update + - apt-get -yqqf install zip unzip subversion mysql-client libmysqlclient-dev --fix-missing + - docker-php-ext-enable mbstring mcrypt mysqli pdo_mysql intl gd zip bz2 + - bash bin/install-wp-tests.sh wordpress_tests root mysql mysql latest true + - phpunit --configuration phpunit.xml.dist