12 # We cannot use hhvm-nightly since that does not work in Travis CI's old
15 # Don't wait for the allowed failures to build.
24 # Remove Xdebug as we don't need it and it causes
25 # PHP Fatal error: Maximum function nesting level of '256' reached.
26 # We also don't care if that file exists or not on PHP 7.
27 - phpenv config-rm xdebug.ini || true
29 # Remember the current entity test directory for later use in the Drupal
32 # Navigate out of module directory to prevent blown stack by recursive module
37 - mysql -e 'create database entity'
38 # Export database variable for kernel tests.
39 - export SIMPLETEST_DB=mysql://root:@127.0.0.1/entity
40 # Download Drupal 8 core.
41 - travis_retry git clone --branch 8.1.x --depth 1 http://git.drupal.org/project/drupal.git
43 - composer self-update
46 # Reference entity in build site.
47 - ln -s $TESTDIR modules/entity
49 # Start a web server on port 8888, run in the background; wait for
51 - nohup php -S localhost:8888 > /dev/null 2>&1 &
53 # Export web server URL for browser tests.
54 - export SIMPLETEST_BASE_URL=http://localhost:8888
57 # Run the PHPUnit tests which also include the kernel tests.
58 - ./vendor/phpunit/phpunit/phpunit -c ./core/phpunit.xml.dist --verbose ./modules/entity