Skip to content
This repository has been archived by the owner on Mar 17, 2019. It is now read-only.

Commit

Permalink
Updated travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Feb 11, 2017
1 parent caf321b commit 71213b2
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,42 @@ sudo: false
cache:
directories:
- $HOME/.composer/cache
- $HOME/.cache/pip

env:
global:
- PATH="$HOME/.composer/vendor/bin:$PATH"
- TARGET=test
- SYMFONY_DEPRECATIONS_HELPER=weak

matrix:
fast_finish: true
include:
- php: 7.0
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 7.1
env: SYMFONY_VERSION=2.8.*
- php: 7.1
env: SYMFONY_VERSION=3.1.*
- php: 7.1
env: SYMFONY_VERSION=3.2.*
allow_failures:
- php: hhvm
- php: nightly

before_install:
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi;

install:
- composer global require satooshi/php-coveralls sllh/composer-lint codeclimate/php-test-reporter --prefer-dist --no-interaction
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
- composer update --prefer-dist --no-interaction $COMPOSER_FLAGS

before_script:
- (phpenv config-rm xdebug.ini || exit 0)
- mkdir -p ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d && echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer selfupdate
- composer config -q -g github-oauth.github.com $GITHUB_OAUTH_TOKEN
- travis_wait composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
- export PATH=$HOME/.local/bin:$PATH
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "zend_extension=xdebug.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;

script:
- make $TARGET
- composer validate
- phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml

after_script:
- coveralls -v
- test-reporter

0 comments on commit 71213b2

Please sign in to comment.