icingaweb2/.travis.yml

44 lines
713 B
YAML
Raw Normal View History

2017-02-08 15:59:12 +01:00
language: php
dist: trusty
sudo: false
2017-02-08 15:59:12 +01:00
php:
- '5.6'
- '7.0'
- '7.1'
2017-12-04 18:29:54 +01:00
- '7.2'
- nightly
matrix:
allow_failures:
- php: nightly
2017-02-08 15:59:12 +01:00
services:
- mysql
- postgresql
cache:
directories:
- vendor
branches:
only:
- master
- /^v\d/
notifications:
email: false
# also see: test/setup_vendor.sh
before_script:
- php -m
- sh -c '[ -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'
2017-02-08 15:59:12 +01:00
- test/travis_database.sh
- test/setup_vendor.sh
script:
# also see: modules/test/application/clicommands/PhpCommand.php
- php phpcs.phar
2017-02-08 15:59:12 +01:00
- php phpunit.phar -c modules/test/phpunit.xml --verbose