Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 27 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,37 @@
dist: trusty
sudo: false
language: php

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

php:
- 5.3
- 5.4
- 5.5
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- nightly

env:
- SYMFONY_VERSION=2.3.*
- SYMFONY_VERSION=2.5.*
- SYMFONY_VERSION=2.6.*

cache:
directories:
- $HOME/.composer/cache
matrix:
include:
- php: 5.6
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable' SYMFONY_DEPRECATIONS_HELPER=weak
- php: 7.1
env: DEPENDENCIES='dev'
# Test LTS version
- php: 5.6
env: SYMFONY_VERSION='^2'
- php: 7.1
env: SYMFONY_VERSION='^3'

before_install:
- sh -c "if [ `php-config --vernum` -ge 50500 ] ; then pecl config-set preferred_state beta; printf "yes\n" | pecl install apcu ; else echo 'extension="apc.so"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ;fi"
- composer self-update
- composer require --no-update symfony/symfony:${SYMFONY_VERSION}
- if [ `php-config --vernum` -ge 50500 ] ; then pecl config-set preferred_state beta; printf "yes\n" | pecl install apcu ; else echo 'extension="apc.so"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; fi;
- if [ "$DEPENDENCIES" == "dev" ]; then composer config minimum-stability dev; fi;
- if [ "$SYMFONY_VERSION" != "" ]; then composer require symfony/lts:${SYMFONY_VERSION} --no-update; fi;

install: composer install
install:
- composer update $COMPOSER_FLAGS --prefer-dist