diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..a391bd2 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,17 @@ +matrix: + PHP_VERSION: + - 7.3 + - 7.4 + - 8.0 + - 8.1 + +pipeline: + dependencies: + image: gitnet.fr/deblan/php:${PHP_VERSION} + commands: + - php composer install + - php /usr/local/bin/composer require --dev phpunit/phpunit + tests: + image: gitnet.fr/deblan/php:${PHP_VERSION} + commands: + - php ./vendor/bin/phpunit diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 6e0cddf..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,25 +0,0 @@ -pipeline { - agent any - - stages { - stage('PHP 7.1') { - steps { - sh '/usr/local/bin/composer-php7.1 install' - sh 'php7.1 /usr/local/bin/phpunit-7' - } - } - stage('PHP 7.3') { - steps { - sh '/usr/local/bin/composer-php7.3 update' - sh 'php7.3 /usr/local/bin/phpunit-9' - } - } - stage('PHP 7.4') { - steps { - sh '/usr/local/bin/composer-php7.4 update' - sh 'php7.4 /usr/local/bin/phpunit-9' - } - } - } -} -