-
Tim van Dijen authoredUnverifiedad4e2fa2
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
sudo: required
language: php
# Stage order
stages:
- pre-conditions
- test
- quality
- build
################
# Test stage #
################
php:
- 7.2
- 7.3
- 7.4
env:
- COMMAND="composer install"
- COMMAND="composer update"
before_script:
- ${COMMAND}
script:
- php vendor/bin/phpunit --no-coverage
jobs:
fast_finish: true
allow_failures:
- php: 7.3
env: Psalm
- php: 7.3
env: Security check (composer install)
- php: 7.3
env: Security check (composer update)
- php: 7.3
env: PHP Codesniffer
include:
##########################
# Pre-conditions stage #
##########################
- stage: pre-conditions
php: 7.2
env: Syntax check PHP
before_script:
- composer install
script:
- vendor/bin/check-syntax-php.sh
- stage: pre-conditions
php: 7.3
env: Syntax check PHP
before_script:
- composer install
script:
- vendor/bin/check-syntax-php.sh
- stage: pre-conditions
php: 7.4
env: Syntax check PHP
before_script:
- composer install