Skip to content

Commit

Permalink
Merge pull request #16 from xthiago/fix-sf-version
Browse files Browse the repository at this point in the history
Makes library fully compatible with symfony components version [2|3|4] and PHP 5.3-7.2
  • Loading branch information
xthiago authored Feb 13, 2018
2 parents 7d168e2 + 19b2e50 commit 555b139
Show file tree
Hide file tree
Showing 2 changed files with 174 additions and 21 deletions.
191 changes: 172 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,185 @@
# Required to run your project under the correct environment.
language: php

# Versions of PHP you want your project run with.
php:
- '5.3'
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- '7.1'
- hhvm

# Commands to be run before your environment runs.
before_script:
sudo: false

cache:
directories:
- $HOME/.composer/cache/files

addons:
apt:
packages:
- ghostscript

before_install:
- composer self-update
- composer install --prefer-source --no-interaction --dev
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/process:${SYMFONY_VERSION}" "symfony/filesystem:${SYMFONY_VERSION}" --no-update; fi;

install:
- composer update --prefer-dist

# Commands you want to run that will verify your build.
script: phpunit -c tests/
script: ./vendor/bin/phpunit -c tests/ --coverage-text

# allow_failures: Allow this build to fail under the specified environments.
# fast_finish: If your build fails do not continue trying to build, just stop.
matrix:
include:
- php: 5.3
dist: precise
env: SYMFONY_VERSION=2.3.*
- php: 5.3
dist: precise
env: SYMFONY_VERSION=2.4.*
- php: 5.3
dist: precise
env: SYMFONY_VERSION=2.5.*
- php: 5.3
dist: precise
env: SYMFONY_VERSION=2.6.*
- php: 5.3
dist: precise
env: SYMFONY_VERSION=2.7.*
- php: 5.3
dist: precise
env: SYMFONY_VERSION=2.8.*
- php: 5.4
env: SYMFONY_VERSION=2.3.*
- php: 5.4
env: SYMFONY_VERSION=2.4.*
- php: 5.4
env: SYMFONY_VERSION=2.5.*
- php: 5.4
env: SYMFONY_VERSION=2.6.*
- php: 5.4
env: SYMFONY_VERSION=2.7.*
- php: 5.4
env: SYMFONY_VERSION=2.8.*
- php: 5.5
env: SYMFONY_VERSION=2.3.*
- php: 5.5
env: SYMFONY_VERSION=2.4.*
- php: 5.5
env: SYMFONY_VERSION=2.5.*
- php: 5.5
env: SYMFONY_VERSION=2.6.*
- php: 5.5
env: SYMFONY_VERSION=2.7.*
- php: 5.5
env: SYMFONY_VERSION=2.8.*
- php: 5.5
env: SYMFONY_VERSION=3.0.*
- php: 5.5
env: SYMFONY_VERSION=3.1.*
- php: 5.5
env: SYMFONY_VERSION=3.2.*
- php: 5.5
env: SYMFONY_VERSION=3.3.*
- php: 5.5
env: SYMFONY_VERSION=3.4.*
- php: 5.6
env: SYMFONY_VERSION=2.3.*
- php: 5.6
env: SYMFONY_VERSION=2.4.*
- php: 5.6
env: SYMFONY_VERSION=2.5.*
- php: 5.6
env: SYMFONY_VERSION=2.6.*
- php: 5.6
env: SYMFONY_VERSION=2.7.*
- php: 5.6
env: SYMFONY_VERSION=2.8.*
- php: 5.6
env: SYMFONY_VERSION=3.0.*
- php: 5.6
env: SYMFONY_VERSION=3.1.*
- php: 5.6
env: SYMFONY_VERSION=3.2.*
- php: 5.6
env: SYMFONY_VERSION=3.3.*
- php: 5.6
env: SYMFONY_VERSION=3.4.*
- php: 7.0
env: SYMFONY_VERSION=2.3.*
- php: 7.0
env: SYMFONY_VERSION=2.4.*
- php: 7.0
env: SYMFONY_VERSION=2.5.*
- php: 7.0
env: SYMFONY_VERSION=2.6.*
- php: 7.0
env: SYMFONY_VERSION=2.7.*
- php: 7.0
env: SYMFONY_VERSION=2.8.*
- php: 7.0
env: SYMFONY_VERSION=3.0.*
- php: 7.0
env: SYMFONY_VERSION=3.1.*
- php: 7.0
env: SYMFONY_VERSION=3.2.*
- php: 7.0
env: SYMFONY_VERSION=3.3.*
- php: 7.0
env: SYMFONY_VERSION=3.4.*
- php: 7.1
env: SYMFONY_VERSION=3.4.*
- php: 7.1
env: SYMFONY_VERSION=2.3.*
- php: 7.1
env: SYMFONY_VERSION=2.4.*
- php: 7.1
env: SYMFONY_VERSION=2.5.*
- php: 7.1
env: SYMFONY_VERSION=2.6.*
- php: 7.1
env: SYMFONY_VERSION=2.7.*
- php: 7.1
env: SYMFONY_VERSION=2.8.*
- php: 7.1
env: SYMFONY_VERSION=3.0.*
- php: 7.1
env: SYMFONY_VERSION=3.1.*
- php: 7.1
env: SYMFONY_VERSION=3.2.*
- php: 7.1
env: SYMFONY_VERSION=3.3.*
- php: 7.1
env: SYMFONY_VERSION=3.4.*
- php: 7.1
env: SYMFONY_VERSION=3.4.*
- php: 7.1
env: SYMFONY_VERSION=4.0.*
- php: 7.2
env: SYMFONY_VERSION=3.4.*
- php: 7.2
env: SYMFONY_VERSION=2.3.*
- php: 7.2
env: SYMFONY_VERSION=2.4.*
- php: 7.2
env: SYMFONY_VERSION=2.5.*
- php: 7.2
env: SYMFONY_VERSION=2.6.*
- php: 7.2
env: SYMFONY_VERSION=2.7.*
- php: 7.2
env: SYMFONY_VERSION=2.8.*
- php: 7.2
env: SYMFONY_VERSION=3.0.*
- php: 7.2
env: SYMFONY_VERSION=3.1.*
- php: 7.2
env: SYMFONY_VERSION=3.2.*
- php: 7.2
env: SYMFONY_VERSION=3.3.*
- php: 7.2
env: SYMFONY_VERSION=3.4.*
- php: 7.2
env: SYMFONY_VERSION=3.4.*
- php: 7.2
env: SYMFONY_VERSION=4.0.*
allow_failures:
- php: hhvm
fast_finish: true

# Customize when the notification emails are sent.
notifications:
email:
- [email protected]
on_success: never
on_failure: always
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
},
"require": {
"php": ">=5.3.0",
"symfony/filesystem": "~3.1",
"symfony/process": "~3.1"
"symfony/filesystem": "^2.3|^3|^4",
"symfony/process": "^2.3|^3|^4"
},
"require-dev": {
"phpunit/phpunit": "~4.5"
Expand Down

0 comments on commit 555b139

Please sign in to comment.