projek-xyz/slim-flysystem

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php

sudo: false

cache:
  directories:
    - ~/.composer/cache
    - vendor

matrix:
  fast_finish: true
  include:
    # Use the newer stack for HHVM as HHVM does not support Precise anymore since a long time and so Precise has an outdated version
    - php: hhvm-stable
      sudo: required
      dist: trusty
      group: edge
    - php: 5.5
      env: coverage=true
    - php: 5.6
    - php: 7.0
    - php: 7.1
  allow_failures:
    - php: hhvm-stable

install:
  - if [[ ! $coverage ]]; then composer install -n -q; fi
  - if [[ $coverage = true ]]; then composer require codeclimate/php-test-reporter:~0.3 -n -q; fi

script:
  - if [[ ! $coverage ]]; then composer lint && composer test; fi
  - if [[ $coverage = true ]]; then ./vendor/bin/phpunit -c tests/phpunit.xml --coverage-clover build/logs/clover.xml; fi

after_success:
  - export CI_BUILD_NUMBER="$TRAVIS_BUILD_NUMBER"; export CI_PULL_REQUEST="$TRAVIS_PULL_REQUEST"; export CI_BRANCH="$TRAVIS_BRANCH"
  - if [[ $coverage = true ]]; then ./vendor/bin/test-reporter && ./vendor/bin/coveralls -v; fi

branches:
  except:
    - /^v\d\..*/ # Exclude tags with 'v' as prefix

notifications:
  email: false