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 vendor
composer.lock

View File

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

View File

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

3293
composer.lock generated

File diff suppressed because it is too large Load Diff