mirror of
https://github.com/superhelio/commands.git
synced 2026-01-26 11:44:01 +00:00
Testing settings for travis-ci build config
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
vendor
|
||||
composer.lock
|
||||
34
.travis.yml
34
.travis.yml
@@ -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
|
||||
@@ -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
3293
composer.lock
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user