speed up travis, utilize specific phpunit

This commit is contained in:
Toni Uebernickel 2016-01-22 19:43:04 +01:00
parent d1719a2401
commit b2a2546daf
2 changed files with 26 additions and 14 deletions

View file

@ -1,3 +1,5 @@
sudo: false
language: php
php:
@ -8,7 +10,12 @@ php:
- 7.0
- hhvm
cache:
directories:
- $HOME/.composer/cache/files
env:
- COMPOSER_FLAGS="--prefer-lowest"
- SYMFONY_VERSION="^2.8.2"
- SYMFONY_VERSION="^2.8.2" COMPOSER_FLAGS="--prefer-lowest"
- SYMFONY_VERSION="^3.0.1"
@ -17,10 +24,12 @@ env:
matrix:
fast_finish: true
allow_failures:
- php: 7.0
- php: hhvm
- env: SYMFONY_VERSION="dev-master"
exclude:
# Symfony 3.x requires PHP 5.5
- php: 5.3
@ -36,11 +45,12 @@ matrix:
- php: 5.4
env: SYMFONY_VERSION="dev-master"
sudo: false
before_install:
- composer self-update
- if [ "${SYMFONY_VERSION}" != "" ]; then composer require --no-update "symfony/symfony:${SYMFONY_VERSION}"; fi;
before_script:
- curl -s http://getcomposer.org/installer | php
- php composer.phar require --no-update symfony/symfony:${SYMFONY_VERSION}
- php composer.phar install --prefer-source
install:
- composer update ${COMPOSER_FLAGS} --prefer-source
script: phpunit --coverage-text
script:
- vendor/bin/phpunit --colors --coverage-text

View file

@ -8,18 +8,20 @@
"name": "William Durand",
"email": "william.durand1@gmail.com"
}],
"target-dir": "Propel/PropelBundle",
"autoload": {
"psr-0": { "Propel\\PropelBundle": "" }
},
"require": {
"symfony/symfony": "^2.8.2|^3.0.1",
"symfony/propel1-bridge": "2.7.x-dev|^2.8|^3.0",
"symfony/propel1-bridge": "2.7.x-dev",
"propel/propel1": "~1.6"
},
"require-dev": {
"sensio/framework-extra-bundle": "^3.0.2",
"fzaninotto/faker": "dev-master"
},
"autoload": {
"psr-0": { "Propel\\PropelBundle": "" }
},
"target-dir": "Propel/PropelBundle",
"minimum-stability": "dev"
"fzaninotto/faker": "dev-master",
"phpunit/phpunit": "^4.8.21|^5.0.10"
}
}