Skip to content

Commit

Permalink
Merge branch '2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek Nocon committed Sep 24, 2018
2 parents 54b2a5f + a49b998 commit ca1460a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -52,6 +52,7 @@ before_script:
# Behat will use behat.yml which is a copy of behat.yml.dist with hostnames update by doc/docker/selenium.yml
script: docker-compose exec --user www-data app sh -c "php $TEST_CMD"


after_failure:
# Will show us the last bit of the log of container's main processes
# (not counting shell process above running php and behat)
Expand Down
7 changes: 7 additions & 0 deletions behat.yml.dist
Expand Up @@ -26,6 +26,13 @@ default:

EzSystems\PlatformBehatBundle\ServiceContainer\EzBehatExtension: ~

Bex\Behat\ScreenshotExtension:
active_image_drivers: cloudinary
image_drivers:
cloudinary:
cloud_name: ezplatformtravis
preset: ezplatform

suites: ~

imports:
Expand Down
12 changes: 12 additions & 0 deletions bin/.travis/runcommand.sh
@@ -0,0 +1,12 @@
#!/bin/sh

set -e

if [ "$1" = "" ]; then
echo "Argument 1 variable for command arguments is empty, please pass arguments"
exit 1
fi

# Execute test command, need to use sh to get right exit code (docker/compose/issues/3379)
CMD=\"$@\"
docker-compose exec -T --user www-data app bash -c \""$CMD"\"
2 changes: 2 additions & 0 deletions composer.json
Expand Up @@ -60,7 +60,9 @@
"behat/mink-extension": "^2.3.1",
"behat/mink-goutte-driver": "^1.2.1",
"behat/mink-selenium2-driver": "^1.3.1",
"bex/behat-screenshot": "^1.2",
"ezsystems/behatbundle": "^6.5.3",
"ezsystems/behat-screenshot-image-driver-cloudinary": "^1.0",
"phpunit/phpunit": "^6.4.4",
"sensio/generator-bundle": "^3.1.7",
"symfony/phpunit-bridge": "^3.4.11"
Expand Down
1 change: 1 addition & 0 deletions doc/docker/base-dev.yml
Expand Up @@ -10,6 +10,7 @@ services:
depends_on:
- db
environment:
- COMPOSER_MEMORY_LIMIT
- SYMFONY_ENV=${SYMFONY_ENV-dev}
- SYMFONY_DEBUG
- SYMFONY_HTTP_CACHE
Expand Down
1 change: 1 addition & 0 deletions doc/docker/base-prod.yml
Expand Up @@ -11,6 +11,7 @@ services:
depends_on:
- db
environment:
- COMPOSER_MEMORY_LIMIT
- SYMFONY_ENV=${SYMFONY_ENV-prod}
- SYMFONY_DEBUG
- SYMFONY_HTTP_CACHE
Expand Down

0 comments on commit ca1460a

Please sign in to comment.