diff --git a/.travis.yml b/.travis.yml index 6e0592754..0a01c1a13 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ # Note that the example .travis.yml file for child projects lives in /install. sudo: true language: php +dist: trusty php: - 5.6 @@ -24,7 +25,12 @@ notifications: addons: ssh_known_hosts: - - svn-5223.devcloud.hosting.acquia.com + - svn-5223.devcloud.hosting.acquia.com + apt: + packages: + - mysql-server-5.6 + - mysql-client-core-5.6 + - mysql-client-5.6 before_install: # Decrypt private SSH key id_rsa_blt.enc, save as ~/.ssh/id_rsa_blt. @@ -40,7 +46,7 @@ before_install: - echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini - git config --global user.name "Travis-CI" - git config --global user.email "noreply@travis-ci.org" - - mysql -e 'CREATE DATABASE drupal;' + - mysql -u root -e 'CREATE DATABASE drupal;' install: # Load composer dependencies. @@ -54,6 +60,12 @@ install: - nvm use 4.4.1 # Initialize drupal console default configuration. - drupal init + # Initialize xvfb (see https://docs.travis-ci.com/user/gui-and-headless-browsers) + - sudo apt-get install xvfb + - export DISPLAY=:99.0 + - sh -e /etc/init.d/xvfb start + # Installs chromedriver to vendor/bin. + - ./scripts/linux/install-chrome.sh $TRAVIS_BUILD_DIR/vendor/bin before_script: # Clear drush release history cache, to pick up new releases. diff --git a/INSTALL.md b/INSTALL.md index 824210906..e93ecfb79 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -20,7 +20,7 @@ Ensure that [Xcode](https://itunes.apple.com/us/app/xcode/id497799835?mt=12) is Then install the minimum dependencies for BLT. The preferred method is via Homebrew, though you could install these yourself without a package manager. /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" - brew install git composer drush + brew install php56 git composer drush composer global require "hirak/prestissimo:^0.3" If you'd like to create a VM with BLT, you will require the following additional libraries. If you'd like to use a LAMP stack other than Drupal VM, see [Local Development](readme/local-development.md). @@ -29,6 +29,10 @@ If you'd like to create a VM with BLT, you will require the following additional brew install ansible brew cask install virtualbox vagrant +If you'd like to execute Behat tests from the host machine, you will need Java: + + brew cask install java + ### Windows Windows is currently supported only when using the [Bash on Ubuntu on Windows](https://msdn.microsoft.com/en-us/commandline/wsl/about) feature available in the latest version of Windows 10. diff --git a/phing/build.yml b/phing/build.yml index 663d5fed6..269a6cc81 100644 --- a/phing/build.yml +++ b/phing/build.yml @@ -1,16 +1,18 @@ behat: config: ${repo.root}/tests/behat/local.yml + haltonerror: true + strict: true profile: local # If true, `drush runserver` will be used for executing tests. run-server: false # This is used for ad-hoc creation of a server via `drush runserver`. server-url: http://127.0.0.1:8888 - # If true, PhantomJS GhostDriver will be launched with Behat. - launch-phantom: true + # If true, Selenium standalone server will be launched with Behat. + launch-selenium: true # An array of paths with behat tests that should be executed. paths: # - ${docroot}/modules - # - ${docroot}/profiles + - ${docroot}/profiles - ${repo.root}/tests/behat tags: '~ajax' verbose: ${blt.verbose} diff --git a/phing/tasks/setup.xml b/phing/tasks/setup.xml index 1412dcb75..8dce1ca82 100644 --- a/phing/tasks/setup.xml +++ b/phing/tasks/setup.xml @@ -8,6 +8,7 @@ + Attempting to generate tests/behat/local.yml. @@ -15,21 +16,6 @@ - - - - - - - - - - - - Found PhantomJS at ${phantomjs.bin} - - - diff --git a/phing/tasks/tests.xml b/phing/tasks/tests.xml index 7ce54de9a..699f20cf9 100644 --- a/phing/tasks/tests.xml +++ b/phing/tasks/tests.xml @@ -8,10 +8,10 @@ - + - + - -