2017-02-08 15:59:12 +01:00
|
|
|
language: php
|
2017-09-09 09:10:44 +02:00
|
|
|
dist: trusty
|
2017-09-19 16:09:06 +02:00
|
|
|
sudo: false
|
2017-02-08 15:59:12 +01:00
|
|
|
|
|
|
|
php:
|
|
|
|
- '5.4'
|
|
|
|
- '5.5'
|
|
|
|
- '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:
|
2017-10-23 10:32:45 +02:00
|
|
|
- php -m
|
2017-09-19 16:09:06 +02:00
|
|
|
- sh -c '[ -z $LOCALE_GEN ] || sudo locale-gen en_US.UTF-8 de_DE.UTF-8 fr_FR.UTF-8'
|
2017-10-23 10:32:45 +02:00
|
|
|
- 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
|
2017-09-17 09:25:13 +02:00
|
|
|
- php phpcs.phar
|
2017-02-08 15:59:12 +01:00
|
|
|
- php phpunit.phar -c modules/test/phpunit.xml --verbose
|