.travis.yml 1.8 KB

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