wordpress-activitypub-event.../.woodpecker/test.yml
André Menrath 3fd166a20d
Some checks failed
/ test (push) Successful in 0s
ci/woodpecker/push/test Pipeline failed
test
2024-09-20 22:36:55 +02:00

29 lines
No EOL
1 KiB
YAML

when:
- event: push
branch: woodpecker
steps:
- name: build
image: wordpressdevelop/phpunit
environment:
WP_TESTS_PHPUNIT_POLYFILLS_PATH: vendor/yoast/phpunit-polyfills
commands:
- apt-get clean
- apt install -y apt-transport-https lsb-release ca-certificates wget
- wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
- echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list
- apt-get -yqq update
- apt-get -yqqf install zip unzip subversion php8.2-mysql php8.2-bz2 php8.2-mcrypt
- docker-php-ext-enable mbstring mcrypt mysqli pdo_mysql intl gd zip bz2
- composer require --dev yoast/phpunit-polyfills:"^3.0"
- composer install
- bash bin/install-wp-tests.sh wordpress_tests root mysql mysql latest true
- phpunit --configuration phpunit.xml.dist
services:
- name: database
image: mysql
environment:
MYSQL_DATABASE: wordpress_tests
MYSQL_ROOT_PASSWORD: mysql