This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/vendor/kosinix/grafika/.travis.yml
2020-04-25 22:20:29 +08:00

44 lines
1.6 KiB
YAML

language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
matrix:
allow_failures:
- php: 5.6
- php: 7.0
branches:
only:
- master
- develop
before_install:
- sudo apt-get update
- sudo apt-get -y --reinstall install imagemagick
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.3" ]]; then printf "\n" | pecl install imagick-3.3.0; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.4" ]]; then printf "\n" | pecl install imagick-3.3.0; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]]; then printf "\n" | pecl install imagick-3.3.0; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then printf "\n" | pecl install imagick-3.3.0; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then printf "\n" | pecl install imagick-3.4.3; fi
# - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then phpunit --self-upgrade; fi
# - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.4" ]]; then echo "extension = imagick.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
before_script:
- composer self-update
- composer install --prefer-source --no-interaction --dev
- sudo mkdir -p /home/travis/build/kosinix/grafika/tests/tmp
- sudo chmod -R 0777 /home/travis/build/kosinix/grafika/tests/
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then phpenv config-rm xdebug.ini; fi
script:
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.3" ]]; then phpunit; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.4" ]]; then phpunit; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]]; then phpunit; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then phpunit; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then phpdbg -qrr phpunit; fi