.travis.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. language: php
  2. php:
  3. - 5.3
  4. - 5.4
  5. - 5.5
  6. - 5.6
  7. - 7.0
  8. matrix:
  9. allow_failures:
  10. - php: 5.6
  11. - php: 7.0
  12. branches:
  13. only:
  14. - master
  15. - develop
  16. before_install:
  17. - sudo apt-get update
  18. - sudo apt-get -y --reinstall install imagemagick
  19. - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.3" ]]; then printf "\n" | pecl install imagick-3.3.0; fi
  20. - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.4" ]]; then printf "\n" | pecl install imagick-3.3.0; fi
  21. - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]]; then printf "\n" | pecl install imagick-3.3.0; fi
  22. - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then printf "\n" | pecl install imagick-3.3.0; fi
  23. - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then printf "\n" | pecl install imagick-3.4.3; fi
  24. # - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then phpunit --self-upgrade; fi
  25. # - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.4" ]]; then echo "extension = imagick.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
  26. before_script:
  27. - composer self-update
  28. - composer install --prefer-source --no-interaction --dev
  29. - sudo mkdir -p /home/travis/build/kosinix/grafika/tests/tmp
  30. - sudo chmod -R 0777 /home/travis/build/kosinix/grafika/tests/
  31. - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then phpenv config-rm xdebug.ini; fi
  32. script:
  33. - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.3" ]]; then phpunit; fi
  34. - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.4" ]]; then phpunit; fi
  35. - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]]; then phpunit; fi
  36. - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then phpunit; fi
  37. - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then phpdbg -qrr phpunit; fi