Skip to content

Commit

Permalink
Update dependencies to supported version and update travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
acrobat committed Jun 27, 2017
1 parent b0680e1 commit c0a7d59
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 18 deletions.
31 changes: 18 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,33 @@
sudo: false
dist: trusty

language: php

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

env:
- SYMFONY_VERSION=2.3.*
- SYMFONY_VERSION=2.4.*
- SYMFONY_VERSION=2.5.*
- SYMFONY_VERSION=2.6.*
- SYMFONY_VERSION=2.7.*
- SYMFONY_VERSION=2.8.*
- SYMFONY_VERSION=3.0.*
matrix:
fast_finish: true
include:
- php: 5.6
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
- php: 7.1
env: DEPENDENCIES=dev
- php: 7.0
env: SYMFONY_VERSION=2.8.* # Test against LTS versions

before_install:
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
- if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;

before_install:
- composer self-update

install:
- composer require symfony/framework-bundle:${SYMFONY_VERSION} --no-update
- composer require symfony/console:${SYMFONY_VERSION} --no-update
- composer require symfony/finder:${SYMFONY_VERSION} --no-update
- composer install --no-progress --no-plugins
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction

script:
- bin/phpunit
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
},

"require" : {
"bernard/bernard" : "1.0.*@dev",
"symfony/framework-bundle" : "~2.3|~3.0"
"php": "^5.6|^7.0",
"bernard/bernard": "1.0.*@dev",
"symfony/framework-bundle": "^2.7|^3.0"
},

"require-dev" : {
"symfony/console" : "~2.3|~3.0",
"symfony/finder" : "~2.3|~3.0",
"phpunit/phpunit" : "~4.0"
"symfony/console": "^2.7|^3.0",
"symfony/finder": "^2.7|^3.0",
"phpunit/phpunit": "~4.0"
},

"extra" : {
Expand Down

0 comments on commit c0a7d59

Please sign in to comment.