This repository has been archived by the owner on Apr 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90b43e1
commit 3d3df4c
Showing
1 changed file
with
34 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,79 @@ | ||
language: php | ||
dist: trusty | ||
sudo: false | ||
dist: xenial | ||
|
||
matrix: | ||
include: | ||
- php: 7.1 | ||
env: | ||
- env: | ||
- PHP_VERSION=7.1 | ||
- LARAVEL_VERSION=5.5.* | ||
- SYMFONY_VERSION=^3.0 | ||
- PHPUNIT_VERSION=^6.5 | ||
- php: 7.1 | ||
env: | ||
- env: | ||
- PHP_VERSION=7.1 | ||
- LARAVEL_VERSION=5.6.* | ||
- SYMFONY_VERSION=^4.0 | ||
- PHPUNIT_VERSION=^7.5 | ||
- php: 7.1 | ||
env: | ||
- env: | ||
- PHP_VERSION=7.1 | ||
- LARAVEL_VERSION=5.7.* | ||
- SYMFONY_VERSION=^4.0 | ||
- PHPUNIT_VERSION=^7.5 | ||
- php: 7.1 | ||
env: | ||
- env: | ||
- PHP_VERSION=7.1 | ||
- LARAVEL_VERSION=5.8.* | ||
- SYMFONY_VERSION=^4.0 | ||
- PHPUNIT_VERSION=^7.5 | ||
- php: 7.2 | ||
env: | ||
- env: | ||
- PHP_VERSION=7.2 | ||
- LARAVEL_VERSION=5.5.* | ||
- SYMFONY_VERSION=^3.0 | ||
- PHPUNIT_VERSION=^6.5 | ||
- php: 7.2 | ||
env: | ||
- env: | ||
- PHP_VERSION=7.2 | ||
- LARAVEL_VERSION=5.6.* | ||
- SYMFONY_VERSION=^4.0 | ||
- PHPUNIT_VERSION=^7.5 | ||
- php: 7.2 | ||
env: | ||
- env: | ||
- PHP_VERSION=7.2 | ||
- LARAVEL_VERSION=5.7.* | ||
- SYMFONY_VERSION=^4.0 | ||
- PHPUNIT_VERSION=^7.5 | ||
- php: 7.2 | ||
env: | ||
- env: | ||
- PHP_VERSION=7.2 | ||
- LARAVEL_VERSION=5.8.* | ||
- SYMFONY_VERSION=^4.0 | ||
- PHPUNIT_VERSION=^8.0 | ||
- php: 7.3 | ||
env: | ||
- env: | ||
- PHP_VERSION=7.3 | ||
- LARAVEL_VERSION=5.5.* | ||
- SYMFONY_VERSION=^3.0 | ||
- PHPUNIT_VERSION=^6.5 | ||
- php: 7.3 | ||
env: | ||
- env: | ||
- PHP_VERSION=7.3 | ||
- LARAVEL_VERSION=5.6.* | ||
- SYMFONY_VERSION=^4.0 | ||
- PHPUNIT_VERSION=^7.5 | ||
- php: 7.3 | ||
env: | ||
- env: | ||
- PHP_VERSION=7.3 | ||
- LARAVEL_VERSION=5.7.* | ||
- SYMFONY_VERSION=^4.0 | ||
- PHPUNIT_VERSION=^7.5 | ||
- php: 7.3 | ||
env: | ||
- env: | ||
- PHP_VERSION=7.3 | ||
- LARAVEL_VERSION=5.8.* | ||
- SYMFONY_VERSION=^4.0 | ||
- PHPUNIT_VERSION=^8.0 | ||
|
||
before_install: | ||
- travis_retry docker pull registry.gitlab.com/grahamcampbell/php:$PHP_VERSION | ||
- docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint composer registry.gitlab.com/grahamcampbell/php:$PHP_VERSION require "laravel/framework:${LARAVEL_VERSION}" --no-update -n | ||
- docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint composer registry.gitlab.com/grahamcampbell/php:$PHP_VERSION require "symfony/lts:${SYMFONY_VERSION}" --no-update -n | ||
- docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint composer registry.gitlab.com/grahamcampbell/php:$PHP_VERSION require "phpunit/phpunit:${PHPUNIT_VERSION}" --dev --no-update -n | ||
|
||
install: | ||
- composer require "laravel/framework:${LARAVEL_VERSION}" --no-update -n | ||
- composer require "symfony/lts:${SYMFONY_VERSION}" --no-update -n | ||
- composer require "phpunit/phpunit:${PHPUNIT_VERSION}" --dev --no-update -n | ||
- travis_retry composer install --no-suggest --prefer-dist -n -o | ||
- travis_retry docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint composer registry.gitlab.com/grahamcampbell/php:$PHP_VERSION install --no-suggest --prefer-dist -n -o | ||
|
||
script: | ||
- if [ "$TRAVIS_PHP_VERSION" != "7.1" ]; then vendor/bin/phpunit; fi | ||
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi | ||
- docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/phpunit registry.gitlab.com/grahamcampbell/php:$PHP_VERSION --coverage-clover build/logs/clover.xml | ||
|
||
after_script: | ||
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi | ||
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi | ||
- travis_retry docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint ocular registry.gitlab.com/grahamcampbell/php:$PHP_VERSION code-coverage:upload --format=php-clover build/logs/clover.xml |