Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TravisCI for 1.x #207

Merged
merged 3 commits into from
Aug 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
filter:
excluded_paths:
- 'documentation/*'
- 'tests/*'

tools:
external_code_coverage:
runs: 1
149 changes: 122 additions & 27 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,133 @@ cache:
directories:
- $HOME/.composer/cache/files

php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm

env:
global:
- deps=high

matrix:

fast_finish: true

allow_failures:
- name: Test with PHP 7.4
- name: Test with PHP Nightly

include:
- php: 5.3

- name: Test with PHP 7.2 (with code coverage)
php: '7.2'
install:
- composer update
script:
- mkdir -p build/logs
- composer test -- --coverage-clover build/logs/clover.xml

- name: Test with PHP 5.3
dist: precise
- php: 5.3
php: '5.3'
before_script:
- phpenv config-rm xdebug.ini || true
install:
- composer update
script:
- composer test

- name: Test with PHP 5.3 (current dependencies)
dist: precise
env: deps=low
- php: 5.4
env: deps=no
- php: 5.5
env: deps=no
php: '5.3'
before_script:
- phpenv config-rm xdebug.ini || true
install:
- composer install
script:
- composer test

- name: Test with PHP 5.3 (lowest dependencies)
dist: precise
php: '5.3'
before_script:
- phpenv config-rm xdebug.ini || true
install:
- composer update --prefer-lowest
script:
- composer test

- name: Test with PHP 5.4
dist: trusty
php: '5.4'
before_script:
- phpenv config-rm xdebug.ini || true
install:
- composer update
script:
- composer test

- name: Test with PHP 5.5
dist: trusty
php: '5.5'
before_script:
- phpenv config-rm xdebug.ini || true
install:
- composer update
script:
- composer test

- name: Test with PHP 5.6
php: '5.6'
before_script:
- phpenv config-rm xdebug.ini || true
install:
- composer update
script:
- composer test

- name: Test with PHP 5.6 (current dependencies)
php: '5.6'
before_script:
- phpenv config-rm xdebug.ini || true
install:
- composer install
script:
- composer test

- name: Test with PHP 7.0
php: '7.0'
before_script:
- phpenv config-rm xdebug.ini || true
install:
- composer update
script:
- composer test

- name: Test with PHP 7.1
php: '7.1'
before_script:
- phpenv config-rm xdebug.ini || true
install:
- composer update
script:
- composer test

install:
- if [ "$deps" = "no" ]; then composer install; fi
- if [ "$deps" = "low" ]; then composer update --prefer-lowest; fi
- if [ "$deps" = "high" ]; then composer update; fi
- name: Test with PHP 7.3
php: '7.3'
before_script:
- phpenv config-rm xdebug.ini || true
install:
- composer update
script:
- composer test

script:
- mkdir -p build/logs
- composer test -- --coverage-clover build/logs/clover.xml
- name: Test with PHP 7.4
php: '7.4snapshot'
before_script:
- phpenv config-rm xdebug.ini || true
install:
- composer update
script:
- composer test

- name: Test with PHP Nightly
php: nightly
before_script:
- phpenv config-rm xdebug.ini || true
install:
- composer update --ignore-platform-reqs
script:
- composer test