代码拉取完成,页面将自动刷新
sudo: false
dist: trusty
language: php
env:
- COVERAGE_FLAGS=""
matrix:
fast_finish: true
include:
# Need to use Precise for PHP 5.3
- php: 5.3
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE_FLAGS=""
dist: precise
- php: 5.4
- php: 5.5
- php: 5.6
env: COVERAGE_FLAGS=" --coverage-text --coverage-clover build/logs/clover.xml"
- php: 7.0
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4
env: COVERAGE_FLAGS=" --coverage-text --coverage-clover build/logs/clover.xml"
before_install:
- travis_retry wget https://scrutinizer-ci.com/ocular.phar
- mkdir -p build/logs
install:
- travis_retry composer update --no-interaction $COMPOSER_FLAGS
script:
- composer validate --strict
- ./vendor/bin/phpunit $COVERAGE_FLAGS
after_success:
- "[[ -f vendor/bin/php-coveralls ]] && COVERALLS_PATH=vendor/bin/php-coveralls || COVERALLS_PATH=vendor/bin/coveralls"
- travis_retry php $COVERALLS_PATH -v --exclude-no-stmt
- travis_retry php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。