2016-11-29 09:51:09 +01:00
|
|
|
language: php
|
|
|
|
php:
|
|
|
|
- '5.4'
|
|
|
|
- '5.5'
|
|
|
|
- '5.6'
|
|
|
|
- '7.0'
|
2017-01-12 14:49:08 +01:00
|
|
|
- '7.1'
|
|
|
|
- nightly
|
2016-11-29 09:51:09 +01:00
|
|
|
|
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
- postgresql
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- vendor
|
|
|
|
|
2017-02-02 20:59:43 +01:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
allow_failures:
|
|
|
|
- php: nightly
|
|
|
|
|
2016-11-29 09:51:09 +01:00
|
|
|
env:
|
|
|
|
- DB=mysql DIRECTOR_TESTDB_RES="Director MySQL TestDB" DIRECTOR_TESTDB="director_test"
|
|
|
|
- DB=pgsql DIRECTOR_TESTDB_RES="Director PostgreSQL TestDB" DIRECTOR_TESTDB="director_test"
|
|
|
|
DIRECTOR_TESTDB_USER="director_test"
|
|
|
|
|
|
|
|
before_script:
|
2017-05-24 15:15:27 +02:00
|
|
|
# TODO: Re-enable after dropping 5.3 support:
|
|
|
|
# - curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
|
|
|
|
- curl -OL https://github.com/squizlabs/PHP_CodeSniffer/releases/download/2.9.1/phpcs.phar
|
2017-01-13 20:10:35 +01:00
|
|
|
- wget https://github.com/Icinga/icingaweb2/archive/v2.4.0.tar.gz
|
|
|
|
- tar xfz v2.4.0.tar.gz
|
|
|
|
- ln -s icingaweb2-2.4.0/library/Icinga
|
|
|
|
- ln -s icingaweb2-2.4.0/library/vendor/Zend
|
2016-11-29 09:51:09 +01:00
|
|
|
- ./test/travis-prepare.sh
|
2017-01-12 14:49:08 +01:00
|
|
|
|
|
|
|
script:
|
2017-08-18 16:55:39 +02:00
|
|
|
- php phpcs.phar --report-width=auto --report-full --report-gitblame --report-summary -p --standard=PSR2 --extensions=php --encoding=utf-8 -w -s library/Director/ library/vendor/ipl/ application/ *.php test
|
2017-01-12 14:49:08 +01:00
|
|
|
- phpunit --testdox || phpunit --verbose
|