Testing settings for travis-ci build config

This commit is contained in:
Ismo Vuorinen
2017-09-15 07:20:25 +03:00
parent 4f51fd8c51
commit 6140c7b999
4 changed files with 15 additions and 3315 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
vendor
composer.lock

View File

@@ -1,30 +1,22 @@
language: php
sudo: false
php:
- 5.6
- 7.0
- 7.1
env:
global:
- setup=basic
- coverage=no
- nightly
matrix:
allow_failures:
- php: 5.6
- php: nightly
fast_finish: true
cache:
directories:
- $HOME/.composer/cache/files
before_script:
- composer config discard-changes true
- if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-dist --no-interaction; fi
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable; fi
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable; fi
- if [[ $setup = 'coveralls' ]]; then travis_retry composer require "satooshi/php-coveralls=~0.7" --prefer-dist --no-interaction --dev; fi
- phpenv global "$TRAVIS_PHP_VERSION"
- composer config extra.platform.php $TRAVIS_PHP_VERSION
install:
- flags="--ansi --prefer-dist --no-interaction --optimize-autoloader --no-suggest --no-progress"
- composer install $flags
script:
- if [[ $coverage = 'yes' ]]; then ./vendor/bin/phpunit -c phpunit.xml --coverage-clover build/logs/clover.xml; fi
- if [[ $coverage = 'no' ]]; then ./vendor/bin/phpunit -c phpunit.xml; fi
after_script:
- if [[ $setup = 'coveralls' ]]; then php vendor/bin/coveralls -v; fi
- ./vendor/bin/phpunit -c phpunit.xml

View File

@@ -21,7 +21,7 @@
"illuminate/support": "~5.2"
},
"require-dev": {
"phpunit/phpunit" : "4.*",
"phpunit/phpunit" : "~5.7",
"orchestra/testbench": "~3.0",
"doctrine/dbal": "~2.3"
},

3293
composer.lock generated

File diff suppressed because it is too large Load Diff