Astrotomic/laravel-backuplay

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php

## Run on container environment
sudo: false

## Cache composer bits
cache:
  directories:
    - $HOME/.composer/cache

## Addons used by this package
addons:
    code_climate:
        repo_token: ${CC_TOKEN}

## List all PHP versions to test with
php:
  - 5.5
  - 5.6
  - 7.0

## Define all ENV vars to test with
env:
  - LARAVEL_VERSION="5.0.*"
  - LARAVEL_VERSION="5.1.*"
  - LARAVEL_VERSION="5.2.*"

## Install needed Extensions
before_install:
  - pecl install zip

## Install Dependencies
install:
  - composer self-update
  - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
  - composer require laravel/framework:${LARAVEL_VERSION} --no-update --no-interaction
  - composer install --prefer-dist --no-interaction --dev

## Run Scripts before Tests
before_script:
  - composer dump-autoload -o

## Run test Scripts
script:
  - vendor/bin/phpunit
  - vendor/bin/test-reporter
  - php CoverageChecker.php build/logs/clover.xml 80