mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 15:24:05 +02:00
travis: Split matrix in phpcs and phpunit jobs
This commit is contained in:
parent
6e04f3e775
commit
fb9dea884c
20
.travis.yml
20
.travis.yml
@ -10,7 +10,17 @@ php:
|
|||||||
- '7.3'
|
- '7.3'
|
||||||
- nightly
|
- nightly
|
||||||
|
|
||||||
|
env:
|
||||||
|
- CHECK=phpunit
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
|
include:
|
||||||
|
- env: CHECK=phpcs
|
||||||
|
php: '7.3'
|
||||||
|
- env: CHECK=phpcs
|
||||||
|
php: '7.0'
|
||||||
|
- env: CHECK=phpcs
|
||||||
|
php: '5.6'
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- php: nightly
|
- php: nightly
|
||||||
|
|
||||||
@ -33,12 +43,12 @@ notifications:
|
|||||||
# also see: test/setup_vendor.sh
|
# also see: test/setup_vendor.sh
|
||||||
before_script:
|
before_script:
|
||||||
- php -m
|
- php -m
|
||||||
- sh -c '[ -z $LOCALE_GEN ] || sudo locale-gen en_US.UTF-8 de_DE.UTF-8 fr_FR.UTF-8'
|
- '[ -z $LOCALE_GEN ] || sudo locale-gen en_US.UTF-8 de_DE.UTF-8 fr_FR.UTF-8'
|
||||||
- sh -c '[ -z $ENABLE_LDAP ] || phpenv config-add test/travis-ldap.ini'
|
- '[ -z $ENABLE_LDAP ] || phpenv config-add test/travis-ldap.ini'
|
||||||
- test/travis_database.sh
|
|
||||||
- test/setup_vendor.sh
|
- test/setup_vendor.sh
|
||||||
|
- 'if [ "$CHECK" = phpunit ]; then test/travis_database.sh; fi'
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# also see: modules/test/application/clicommands/PhpCommand.php
|
# also see: modules/test/application/clicommands/PhpCommand.php
|
||||||
- php phpcs.phar
|
- 'if [ "$CHECK" = phpcs ]; then php phpcs.phar; fi'
|
||||||
- php phpunit.phar -c modules/test/phpunit.xml --verbose
|
- 'if [ "$CHECK" = phpunit ]; then php phpunit.phar -c modules/test/phpunit.xml --verbose; fi'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user