Skip to content

Commit

Permalink
Merge branch '2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-gribanov committed Jul 17, 2017
2 parents 8dd935f + 85be5b7 commit 0e2bba4
Show file tree
Hide file tree
Showing 20 changed files with 1,194 additions and 210 deletions.
30 changes: 15 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ language: php

sudo: false

php:
- 7.1
- 7.0
- 5.6
- 5.5

notifications:
email: deploy@peter-gribanov.ru

Expand All @@ -18,31 +12,37 @@ branches:
matrix:
fast_finish: true
include:
- php: 7.1
- php: 7.0
- php: 5.6
- php: 5.5
env: COVERAGE=1
- php: 5.5
env: SYMFONY_VERSION=2.7.*
- php: 5.5
env: SYMFONY_VERSION=2.8.*
- php: 5.5
env: SYMFONY_VERSION=3.0.*
allow_failures:
- php: 5.5
env: DOCTRINE_VERSION=2.4.*
- php: 5.5
env: DOCTRINE_VERSION=2.5.*
- php: hhvm
sudo: required
dist: trusty
group: edge

before_install:
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "$COVERAGE" != "1" ]; then phpenv config-rm xdebug.ini; fi;
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
- if [ "$TRAVIS_PHP_VERSION" = "hhvm" ]; then echo 'xdebug.enable = on' >> /etc/hhvm/php.ini; fi
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
- composer self-update

before_script:
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --dev --no-update; fi;
- if [ "$DOCTRINE_VERSION" != "" ]; then composer require "doctrine/orm:${DOCTRINE_VERSION}" --dev --no-update; fi;
- composer install --prefer-dist --no-interaction --no-scripts --no-progress

script:
- if [ "$COVERAGE" != "1" ]; then vendor/bin/phpunit; fi;
- if [ "$COVERAGE" == "1" ]; then vendor/bin/phpunit --coverage-clover build/coverage-clover.xml; fi;
- vendor/bin/phpunit --coverage-clover build/coverage-clover.xml

after_script:
- if [ "$COVERAGE" == "1" ]; then vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage-clover.xml; fi;
- if [ "$COVERAGE" == "1" ]; then vendor/bin/coveralls -v -c .coveralls.yml; fi;
- vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage-clover.xml
- vendor/bin/coveralls -v -c .coveralls.yml
Loading

0 comments on commit 0e2bba4

Please sign in to comment.