.travis.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. language: php
  2. dist: trusty
  3. sudo: false
  4. php:
  5. - 5.6
  6. - 7.0
  7. - 7.1
  8. - 7.2
  9. - 7.3
  10. env:
  11. global:
  12. - SIMPLETEST_DB=sqlite://tmp/site.sqlite
  13. - SIMPLETEST_BASE_URL="http://127.0.0.1:8080"
  14. matrix:
  15. - RELEASE=stable COMPOSER_CHANNEL=stable
  16. - RELEASE=dev COMPOSER_CHANNEL=stable
  17. - RELEASE=stable COMPOSER_CHANNEL=snapshot
  18. matrix:
  19. exclude:
  20. - php: 5.6
  21. env: RELEASE=dev COMPOSER_CHANNEL=stable
  22. - php: 5.6
  23. env: RELEASE=stable COMPOSER_CHANNEL=snapshot
  24. before_install:
  25. - if [[ $TRAVIS_PHP_VERSION = 5.6 ]]; then export COMPOSER_MEMORY_LIMIT=-1; fi;
  26. - echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
  27. - phpenv config-rm xdebug.ini
  28. - composer --verbose self-update --$COMPOSER_CHANNEL
  29. - composer --version
  30. install:
  31. - composer --verbose validate
  32. - composer --verbose install
  33. script:
  34. - if [[ $RELEASE = dev ]]; then composer --verbose remove --no-update drupal/console; fi;
  35. - if [[ $RELEASE = dev ]]; then composer --verbose require --no-update drupal/core:8.7.x-dev webflo/drupal-core-require-dev:8.7.x-dev; fi;
  36. - if [[ $RELEASE = dev ]]; then composer --verbose update; fi;
  37. - cd $TRAVIS_BUILD_DIR/web
  38. - ./../vendor/bin/drush site-install --verbose --yes --db-url=sqlite://tmp/site.sqlite
  39. - ./../vendor/bin/drush runserver $SIMPLETEST_BASE_URL &
  40. - until curl -s $SIMPLETEST_BASE_URL; do true; done > /dev/null
  41. # Skip core/tests/Drupal/Tests/ComposerIntegrationTest.php because web/ has no composer.json
  42. # Ignore PageCache group temporarily, @see https://www.drupal.org/node/2770673
  43. # Ignore Setup group temporarily, @see https://www.drupal.org/node/2962157
  44. - ./../vendor/bin/phpunit -c core --testsuite unit --exclude-group Composer,DependencyInjection,PageCache,Setup
  45. - ./../vendor/bin/drush
  46. - if [[ $RELEASE = stable ]]; then ./../vendor/bin/drupal; fi;