This commit is contained in:
parent
ec870e287c
commit
9cfbebabd6
17
.woodpecker.yml
Normal file
17
.woodpecker.yml
Normal 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
25
Jenkinsfile
vendored
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in a new issue