.travis.yml 946 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. language: php
  2. sudo: false
  3. php:
  4. - 5.5
  5. - 5.6
  6. - 7.0
  7. - hhvm
  8. matrix:
  9. allow_failures:
  10. - php: hhvm
  11. fast_finish: true
  12. mysql:
  13. database: context
  14. username: root
  15. encoding: utf8
  16. before_script:
  17. # Remember the current context test directory for later use in the Drupal
  18. # installation.
  19. - TESTDIR=$(pwd)
  20. # Navigate out of module directory to prevent blown stack by recursive module
  21. # lookup.
  22. - cd ..
  23. # Create database.
  24. - mysql -e 'create database context'
  25. # Export database variable for kernel tests.
  26. - export SIMPLETEST_DB=mysql://root:@127.0.0.1/context
  27. # Download Drupal 8 core.
  28. - travis_retry git clone --branch 8.0.x --depth 1 http://git.drupal.org/project/drupal.git
  29. - cd drupal
  30. # Reference rules in build site.
  31. - ln -s $TESTDIR modules/context
  32. script:
  33. # Run the PHPUnit tests which also include the kernel tests.
  34. - ./vendor/phpunit/phpunit/phpunit -c ./core/phpunit.xml.dist ./modules/context