PluginSVN: image: registry.krone.at/captcha/wp-deploy before_script: # IMAGE from: https://github.com/ethitter/wp-org-plugin-deploy - export WP_ORG_RELEASE_REF=$CI_COMMIT_TAG - export PLUGIN_VERSION=$CI_COMMIT_TAG - export PLUGIN_VERSION_CLEAN=$(echo $CI_COMMIT_TAG| sed 's/v//g') - echo $PLUGIN_VERSION - echo $PLUGIN_VERSION_CLEAN - apt-get update && apt-get install -y php wget php-dom - wget -O /usr/bin/composer https://getcomposer.org/download/2.5.4/composer.phar && chmod a+rwx /usr/bin/composer - composer install --no-dev - git add -f vendor - rm -vfr fastlane/ tests/ - chmod +x ./bin/deploy.sh script: - export WP_ORG_RELEASE_REF=$CI_COMMIT_TAG - export PLUGIN_VERSION=$CI_COMMIT_TAG - export PLUGIN_VERSION_CLEAN=$(echo $CI_COMMIT_TAG| sed 's/v//g') - echo $PLUGIN_VERSION - echo $PLUGIN_VERSION_CLEAN - ./bin/deploy.sh when: on_success tags: - docker except: - /.*beta.*/ only: - /^v([0-9]+).*/ test: image: php:8.1 services: - name: mysql:5.7 alias: mysql command: ["--default-authentication-plugin=mysql_native_password", "--skip-ssl"] variables: MYSQL_DATABASE: x1 MYSQL_ROOT_PASSWORD: rootpassword MYSQL_USER: user MYSQL_PASSWORD: pw COMPOSER_ALLOW_SUPERUSER: 1 cache: paths: - vendor/ tags: - docker before_script: - apt-get update && apt-get install -y git subversion default-mysql-client wget zip unzip libzip-dev zlib1g-dev libicu-dev libxml2-dev libpng-dev libjpeg-dev libfreetype6-dev libonig-dev build-essential - curl -sSL https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o /usr/local/bin/install-php-extensions - chmod +x /usr/local/bin/install-php-extensions - install-php-extensions mysqli pdo pdo_mysql zip intl xml gd mbstring xdebug - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer - composer install --prefer-dist --no-progress - chmod +x ./bin/install-wp-tests.sh - sleep 20 - mysqladmin ping -h mysql -u root -prootpassword --skip-ssl || sleep 10 - mysqladmin ping -h mysql -u root -prootpassword --skip-ssl script: - ./bin/install-wp-tests.sh wordpress_test_test root rootpassword mysql latest - XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-clover=/builds/rvZsxF6z/0/CAPTCHA/wp-plugin/coverage.xml --colors=never coverage: '/^\s*Lines:\s*\d+.\d+\%/' artifacts: reports: coverage_report: coverage_format: cobertura path: coverage.xml only: - main - develop - merge_requests