2020-02-12 20:53:41 +01:00
|
|
|
os: linux
|
2016-09-14 16:27:39 +02:00
|
|
|
|
|
|
|
language: php
|
|
|
|
|
|
|
|
php:
|
|
|
|
- 7.1
|
2017-11-23 03:35:11 +01:00
|
|
|
- 7.2
|
2019-03-25 18:58:20 +01:00
|
|
|
- 7.3
|
2020-02-06 23:34:49 +01:00
|
|
|
- 7.4
|
2016-09-14 16:27:39 +02:00
|
|
|
- nightly
|
|
|
|
|
2020-02-12 20:53:41 +01:00
|
|
|
jobs:
|
2016-09-14 16:27:39 +02:00
|
|
|
allow_failures:
|
|
|
|
- php: nightly
|
|
|
|
fast_finish: true
|
|
|
|
|
2018-07-01 19:33:12 +02:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
- $HOME/.php-cs-fixer
|
|
|
|
- $HOME/.local
|
|
|
|
|
2017-12-03 02:53:38 +01:00
|
|
|
env:
|
|
|
|
- AMP_DEBUG=true
|
|
|
|
|
2016-09-14 16:27:39 +02:00
|
|
|
services:
|
|
|
|
- postgresql
|
|
|
|
|
2017-12-03 02:53:38 +01:00
|
|
|
before_install:
|
|
|
|
- phpenv config-rm xdebug.ini || echo "No xdebug config."
|
|
|
|
|
2016-09-14 16:27:39 +02:00
|
|
|
install:
|
2017-05-26 23:33:11 +02:00
|
|
|
- travis/install-raphf.sh
|
|
|
|
- travis/install-pq.sh
|
2017-12-03 02:53:38 +01:00
|
|
|
- composer update -n --prefer-dist
|
2016-09-14 16:27:39 +02:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- psql -c 'CREATE DATABASE test;' -U postgres
|
|
|
|
|
|
|
|
script:
|
2017-05-16 06:26:37 +02:00
|
|
|
- phpdbg -qrr vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
|
|
|
|
- PHP_CS_FIXER_IGNORE_ENV=1 php vendor/bin/php-cs-fixer --diff --dry-run -v fix
|
2016-09-14 16:27:39 +02:00
|
|
|
|
|
|
|
after_script:
|
2020-02-12 20:53:41 +01:00
|
|
|
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.2.0/php-coveralls.phar
|
|
|
|
- chmod +x php-coveralls.phar
|
|
|
|
- travis_retry ./php-coveralls.phar -v
|