Drupal investigation

.travis.yml 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. language: php
  2. sudo: false
  3. php:
  4. - 5.5
  5. - 5.6
  6. - 7
  7. - hhvm
  8. matrix:
  9. allow_failures:
  10. # We cannot use hhvm-nightly since that does not work in Travis CI's old
  11. # Ubuntu 12.04.
  12. - php: hhvm
  13. # Don't wait for the allowed failures to build.
  14. fast_finish: true
  15. mysql:
  16. database: entity
  17. username: root
  18. encoding: utf8
  19. before_script:
  20. # Remove Xdebug as we don't need it and it causes
  21. # PHP Fatal error: Maximum function nesting level of '256' reached.
  22. # We also don't care if that file exists or not on PHP 7.
  23. - phpenv config-rm xdebug.ini || true
  24. # Remember the current entity test directory for later use in the Drupal
  25. # installation.
  26. - TESTDIR=$(pwd)
  27. # Navigate out of module directory to prevent blown stack by recursive module
  28. # lookup.
  29. - cd ..
  30. # Create database.
  31. - mysql -e 'create database entity'
  32. # Export database variable for kernel tests.
  33. - export SIMPLETEST_DB=mysql://root:@127.0.0.1/entity
  34. # Download Drupal 8 core.
  35. - travis_retry git clone --branch 8.1.x --depth 1 http://git.drupal.org/project/drupal.git
  36. - cd drupal
  37. - composer self-update
  38. - composer install -n
  39. # Reference entity in build site.
  40. - ln -s $TESTDIR modules/entity
  41. # Start a web server on port 8888, run in the background; wait for
  42. # initialization.
  43. - nohup php -S localhost:8888 > /dev/null 2>&1 &
  44. # Export web server URL for browser tests.
  45. - export SIMPLETEST_BASE_URL=http://localhost:8888
  46. script:
  47. # Run the PHPUnit tests which also include the kernel tests.
  48. - ./vendor/phpunit/phpunit/phpunit -c ./core/phpunit.xml.dist --verbose ./modules/entity