update ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Simon Vieille 2022-07-26 10:05:14 +02:00
parent ec870e287c
commit 9cfbebabd6
Signed by: deblan
GPG key ID: 579388D585F70417
2 changed files with 17 additions and 25 deletions

17
.woodpecker.yml Normal file
View file

@ -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

25
Jenkinsfile vendored
View file

@ -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'
}
}
}
}