Skip to content

Commit

Permalink
Merge pull request #202 from pfrenssen/guzzle-update
Browse files Browse the repository at this point in the history
Use the same version of Guzzle as Drupal 8 core.

Signed-off-by: Jonathan Hedstrom <[email protected]>
  • Loading branch information
jhedstrom committed Aug 25, 2015
1 parent bf3839b commit 7dee7cf
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,19 @@ env:

matrix:
exclude:
- php: 5.3
env: DRUPAL_VERSION=8
- php: 5.4
env: DRUPAL_VERSION=8
- php: 5.6
env: DRUPAL_VERSION=6
- php: 7.0
env: DRUPAL_VERSION=6
- php: hhvm
env: DRUPAL_VERSION=6
allow_failures:
- php: 7.0

install:
- composer self-update
# Use the example composer.json file for Drupal 8.
- test ${DRUPAL_VERSION} -eq 8 && cp doc/_static/composer.json.d8 ./composer.json || true
- composer install
- composer global require drush/drush:dev-master --prefer-source

Expand Down
8 changes: 4 additions & 4 deletions behat.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ drupal6:
tags: "@d6"
extensions:
Behat\MinkExtension:
base_url: http://localhost:8888
base_url: http://127.0.0.1:8888
Drupal\DrupalExtension:
api_driver: "drupal"
drupal:
Expand All @@ -65,7 +65,7 @@ drupal7:
tags: "@d7"
extensions:
Behat\MinkExtension:
base_url: http://localhost:8888
base_url: http://127.0.0.1:8888
Drupal\DrupalExtension:
api_driver: "drupal"
drupal:
Expand All @@ -90,7 +90,7 @@ drush:
tags: "@drushTest"
extensions:
Behat\MinkExtension:
base_url: http://localhost:8888
base_url: http://127.0.0.1:8888
Drupal\DrupalExtension:
api_driver: "drush"
drush_driver: "drush"
Expand All @@ -113,7 +113,7 @@ drupal8:
tags: "@d8&&~@d8wip"
extensions:
Behat\MinkExtension:
base_url: http://localhost:8888
base_url: http://127.0.0.1:8888
Drupal\DrupalExtension:
api_driver: "drupal"
drupal:
Expand Down
40 changes: 40 additions & 0 deletions doc/_static/composer.json.d8
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "drupal/drupal-extension",
"type": "behat-extension",
"description": "Drupal extension for Behat",
"keywords": ["drupal", "web", "test"],
"homepage": "http://drupal.org/project/drupalextension",
"license": "GPL-2.0+",
"authors": [
{
"name": "Jonathan Hedstrom",
"email": "[email protected]"
}
],
"require": {
"behat/mink": "~1.5",
"behat/mink-goutte-driver": "~1.0",
"behat/mink-selenium2-driver": "~1.1",
"behat/behat": "~3.0,>=3.0.5",
"behat/mink-extension": "~2.0",
"drupal/drupal-driver": "~1.0@dev",
"guzzlehttp/guzzle" : "^6.0@dev"
},
"require-dev": {
"phpspec/phpspec": "~2.0",
"phpunit/phpunit": "3.7.*",
"behat/mink-zombie-driver": "^1.2"
},
"autoload": {
"psr-0": {
"Drupal\\Drupal": "src/",
"Drupal\\Exception": "src/",
"Drupal\\DrupalExtension": "src/"
}
},
"extra": {
"branch-alias": {
"dev-master": "3.0.x-dev"
}
}
}
6 changes: 6 additions & 0 deletions doc/localinstall.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ infrastructure. It also makes documentation consistent and reliable.
:language: javascript
:linenos:

For Drupal 8, you'll need to specify the correct version of Guzzle:

.. literalinclude:: _static/snippets/composer.json.d8
: language: javascript
:linenos:

4. Run the following command to install the Drupal Extension and all those
dependencies. This takes a while before you start to see output::

Expand Down

0 comments on commit 7dee7cf

Please sign in to comment.