attogram/shared-media-sandbox

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
# Attogram Shared Media Sandbox - https://github.com/attogram/shared-media-sandbox
# Travis CI - https://travis-ci.org/attogram/shared-media-sandbox
language: php
php:
#  - '5.5' # needs dist: trusty
  - '5.6'
  - '7.0'
  - '7.1'
  - '7.2'
  - '7.3'
  - '7.4'
matrix:
  fast_finish: true
before_script:
  - composer install
script:
  - if find . -name "*.php" -exec php -l {} 2>&1 \; | grep "error,"; then exit 1; fi;
  - if [ $TRAVIS_PHP_VERSION == "5.5" ]; then composer require phpunit/phpunit ~4; fi
  - if [ $TRAVIS_PHP_VERSION == "5.6" ]; then composer require phpunit/phpunit ~5; fi
  - if [ $TRAVIS_PHP_VERSION == "7.0" ]; then composer require phpunit/phpunit ~6; fi
  - if [ $TRAVIS_PHP_VERSION == "7.1" ]; then composer require phpunit/phpunit ~7; fi
  - if [ $TRAVIS_PHP_VERSION == "7.2" ]; then composer require phpunit/phpunit ~8; fi
  - if [ $TRAVIS_PHP_VERSION == "7.3" ]; then composer require phpunit/phpunit ~9; fi
  - if [ $TRAVIS_PHP_VERSION == "7.4" ]; then composer require phpunit/phpunit ~9; fi
  - vendor/bin/phpunit;