Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #49 from alexislefebvre/remove-outdated-symfony-ve…
Browse files Browse the repository at this point in the history
…rsions

Travis CI: Remove old versions of Symfony from test matrix
  • Loading branch information
alexislefebvre authored Jan 11, 2018
2 parents 62ec32c + abff776 commit ca06377
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ build:
dependencies:
override:
-
command: 'composer require --dev "symfony/symfony:2.8.*" --no-update'
command: 'composer require --dev "symfony/symfony:3.4.*" --no-update'
-
command: 'composer install --no-interaction -vv --profile --no-progress'
idle_timeout: 900
Expand Down
17 changes: 5 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,24 @@ cache:
- $HOME/.composer/cache

php:
- 5.6
- 7.0
- 7.1
- 7.2

env:
- SYMFONY_VERSION="2.8.*"
- SYMFONY_VERSION="3.3.*"
- SYMFONY_VERSION="3.4.*"

matrix:
include:
- php: 5.6
env: SYMFONY_VERSION="2.7.*"
- php: 7.0
env: SYMFONY_VERSION="3.2.*"
- php: 7.2
env: SYMFONY_VERSION="3.3.*"
- php: 7.2
env: SYMFONY_VERSION="3.4.*@beta"
env: SYMFONY_VERSION="3.4"

# Only send code coverage to Code Climate for the current versions of PHP and Symfony LTS
# https://github.com/doctrine/doctrine2/blob/3570f4a49afc7e98fed71e0596dded6a39d4fd7b/.travis.yml#L16
before_install:
- if echo "$TRAVIS_COMMIT_MESSAGE" | grep -F -q "[skip travis]" ; then echo "[skip travis] has been found, exiting" && exit 0 ; else echo "[skip travis] has not been found, continuing" ; fi
- if [[ $TRAVIS_PHP_VERSION = '7.0' && $SYMFONY_VERSION = '2.8.*' ]]; then DEPENDENCY="codeclimate/php-test-reporter:~0.3 satooshi/php-coveralls:~1.0"; PHPUNIT_FLAGS="--coverage-clover ./build/logs/clover.xml"; else DEPENDENCY=""; PHPUNIT_FLAGS=""; fi
- if [[ $TRAVIS_PHP_VERSION != '7.0' && $TRAVIS_PHP_VERSION != 'hhvm' && $PHPUNIT_FLAGS = "" ]]; then phpenv config-rm xdebug.ini; fi
- if [[ $TRAVIS_PHP_VERSION = '7.2' && $SYMFONY_VERSION = '3.4.*' ]]; then DEPENDENCY="codeclimate/php-test-reporter:~0.3 satooshi/php-coveralls:~1.0"; PHPUNIT_FLAGS="--coverage-clover ./build/logs/clover.xml"; else DEPENDENCY=""; PHPUNIT_FLAGS=""; fi
- if [[ $PHPUNIT_FLAGS = "" ]]; then phpenv config-rm xdebug.ini; fi

install:
- composer require --dev symfony/symfony:${SYMFONY_VERSION} $DEPENDENCY --no-update
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ install:
- cd c:\projects\asynctweetsbundle
- IF NOT EXIST composer.phar (appveyor DownloadFile https://getcomposer.org/download/1.3.2/composer.phar)
- php composer.phar self-update -vvv
- php composer.phar require "symfony/symfony:2.8.*" --no-progress --ansi
- php composer.phar require "symfony/symfony:3.4.*" --no-progress --ansi

test_script:
- cd c:\projects\asynctweetsbundle
Expand Down
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies:
- sed -i 's/^;//' /opt/circleci/php/$(phpenv global)/etc/conf.d/xdebug.ini
- rm /opt/circleci/php/$(phpenv global)/etc/conf.d/xdebug.ini
override:
- composer require --dev "symfony/symfony:2.8.*" --no-update
- composer require --dev "symfony/symfony:3.4.*" --no-update
- composer install --no-interaction --profile --no-progress

test:
Expand Down

0 comments on commit ca06377

Please sign in to comment.