Skip to content

Commit

Permalink
Merge pull request #8 from stof/improve_travis_setup
Browse files Browse the repository at this point in the history
Improve the CI setup
  • Loading branch information
k-k committed Oct 21, 2015
2 parents 61e433c + ecff6b9 commit 383c860
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 12 deletions.
33 changes: 25 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
language: php

sudo: false

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

php:
- 5.3
- 5.4
# 5.5 and 5.6 are already covered by the jobs running against specific Symfony versions. no need to duplicate them here
- 7.0
- hhvm

matrix:
include:
# force testing against Symfony LTS versions
- php: 5.5
env: SYMFONY_VERSION=2.3.*
- php: 5.6
env: SYMFONY_VERSION=2.7.*
# Test against lowest dependencies
- php: 5.6
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'

env:
- SYMFONY_VERSION=2.3.*
- SYMFONY_VERSION=2.4.*
- SYMFONY_VERSION=2.5.*
before_install:
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/symfony=$SYMFONY_VERSION; fi

before_script:
- composer self-update
- composer require symfony/framework-bundle:${SYMFONY_VERSION} --no-update
- composer install --dev --prefer-source
install:
- composer update $COMPOSER_FLAGS

script: phpunit --coverage-text
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"symfony/framework-bundle": "~2.3"
},
"require-dev": {
"phpunit/phpunit": "~3.7"
"symfony/phpunit-bridge": "~2.7",
"phpunit/phpunit": "~4.5"
},
"autoload": {
"psr-4": {
Expand Down
3 changes: 0 additions & 3 deletions tests/DependencyInjection/KeenIOExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;

class KeenIOExtensionTest extends \PHPUnit_Framework_TestCase
{
/**
* QPush Extension
*
* @var KeenIOExtension
*/
private $extension;
Expand Down

0 comments on commit 383c860

Please sign in to comment.