xabbuh/panda-client

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
sudo: false

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

language: php

env:
  global:
    - SYMFONY_VERSION=""
    - COMPOSER_OPTIONS="--prefer-stable"

matrix:
  fast_finish: true
  include:
    - php: 5.6
      env: COMPOSER_OPTIONS="--prefer-lowest --prefer-stable"
    - php: 7.0
      env: SYMFONY_VERSION="2.7.x"
    - php: 7.0
      env: SYMFONY_VERSION="2.8.x"
    - php: 7.0
    - php: 7.1
      env: COVERAGE=yes COMPOSER_OPTIONS=""

before_install:
  - if [ "$COVERAGE" != "yes" -a "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi
  - if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/symfony:"$SYMFONY_VERSION"; fi

install:
  - composer update $COMPOSER_OPTIONS

script:
  - if [ "$COVERAGE" = "yes" ]; then vendor/bin/simple-phpunit --coverage-clover=coverage.clover; else vendor/bin/simple-phpunit; fi
  - if [ "$COVERAGE" = "yes" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
  - if [ "$COVERAGE" = "yes" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi