Drupal investigation

.travis.yml 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. language: php
  2. sudo: false
  3. cache:
  4. directories:
  5. - $HOME/.composer/cache/files
  6. matrix:
  7. include:
  8. - php: 5.3
  9. - php: 5.4
  10. - php: 5.5
  11. - php: 5.6
  12. - php: 5.3
  13. env: deps=low
  14. - php: 5.6
  15. env: deps=high
  16. - php: 7.0
  17. - php: hhvm
  18. allow_failures:
  19. - php: hhvm
  20. fast_finish: true
  21. env:
  22. global:
  23. - deps=no
  24. - SYMFONY_DEPRECATIONS_HELPER=weak
  25. before_install:
  26. - if [[ "$TRAVIS_PHP_VERSION" != "nightly" ]] && [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi;
  27. - composer self-update
  28. - if [[ "$TRAVIS_PHP_VERSION" != "nightly" ]] && [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]] && [ $(php -r "echo PHP_MINOR_VERSION;") -le 4 ]; then echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;
  29. - if [[ "$TRAVIS_PHP_VERSION" != "nightly" ]] && [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then php -i; fi;
  30. # Set the COMPOSER_ROOT_VERSION to the right version according to the branch being built
  31. - if [ "$TRAVIS_BRANCH" = "master" ]; then export COMPOSER_ROOT_VERSION=dev-master; else export COMPOSER_ROOT_VERSION="$TRAVIS_BRANCH".x-dev; fi;
  32. install:
  33. - if [ "$TRAVIS_PHP_VERSION" != "5.3" ]; then composer require --no-update zendframework/zend-diactoros; fi;
  34. - if [ "$deps" = "no" ]; then export SYMFONY_DEPRECATIONS_HELPER=strict; fi;
  35. - if [ "$deps" = "no" ]; then composer --prefer-source install; fi;
  36. - if [ "$deps" = "high" ]; then composer --prefer-source update; fi;
  37. - if [ "$deps" = "low" ]; then composer --prefer-source --prefer-lowest --prefer-stable update; fi;
  38. script:
  39. - phpunit