1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-01-17 15:28:14 +01:00
php-zip/.travis.yml
2020-01-09 12:50:03 +03:00

72 lines
1.6 KiB
YAML

language: php
env:
global:
- ZIPALIGN_INSTALL=false
- COVERAGE=false
- PHPUNIT_FLAGS="-v -c phpunit.xml --testsuite only_fast_tests"
matrix:
include:
- os: linux
php: 5.5
dist: trusty
- os: linux
php: 5.6
dist: trusty
- os: linux
dist: xenial
php: 7.0
env: ZIPALIGN_INSTALL=true
- os: linux
dist: xenial
php: 7.1
env: ZIPALIGN_INSTALL=true
- os: linux
dist: xenial
php: 7.2
env: ZIPALIGN_INSTALL=true
- os: linux
dist: xenial
php: 7.3
env: ZIPALIGN_INSTALL=true
- os: linux
dist: bionic
php: 7.4
env: COVERAGE=true ZIPALIGN_INSTALL=true PHPUNIT_FLAGS="-v -c phpunit.xml --testsuite only_fast_tests --format=php-clover coverage.clover"
- os: linux
php: nightly
dist: bionic
before_install:
- if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
- php --version
install:
- travis_retry composer self-update && composer --version
- travis_retry composer install --no-interaction
addons:
apt:
packages:
- unzip
- p7zip-full
before_script:
- if [[ ZIPALIGN_INSTALL = true ]]; sudo apt-get install -y zipalign; fi
script:
- composer validate --no-check-lock
- vendor/bin/phpunit -v -c phpunit.xml --testsuite only_fast_tests --coverage-clover=coverage.clover
after_success:
- if [[ $COVERAGE = true ]]; wget https://scrutinizer-ci.com/ocular.phar; fi
- if [[ $COVERAGE = true ]]; php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi