You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.travis.yml 1.5KB

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