mirror of
https://github.com/superhelio/commands.git
synced 2026-01-26 11:44:01 +00:00
31 lines
996 B
YAML
31 lines
996 B
YAML
language: php
|
|
|
|
sudo: false
|
|
|
|
php:
|
|
- 7.0
|
|
- 7.1
|
|
|
|
env:
|
|
global:
|
|
- setup=basic
|
|
- coverage=no
|
|
|
|
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
|
|
|
|
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
|