#!/bin/bash
# called by Travis CI

#repos=$(find vendor/easyengine -type d -name 'features')
sub_commands=(
	vendor/easyengine/site-command/features
	vendor/easyengine/site-type-php/features
	vendor/easyengine/site-type-wp/features
)

for command in "${sub_commands[@]}"; do
	IFS='/' read -r -a array <<< "$command"
	rm -rf features/*
	rsync -av --delete $command/ features/ > /dev/null
	for file in features/*.feature; do mv "$file" "${file%.feature}_${array[2]}.feature"; done
	composer du
	echo "Running tests for $command"
	export COMPOSE_INTERACTIVE_NO_CLI=1
	sudo ./vendor/bin/behat
done

#!/bin/bash
# called by Travis CI

set -x

#repos=$(find vendor/easyengine -type d -name 'features')
sub_commands=(
	vendor/easyengine/site-command/features
	vendor/easyengine/site-type-php/features
	vendor/easyengine/site-type-wp/features
)

export COMPOSE_INTERACTIVE_NO_CLI=1

for command in "${sub_commands[@]}"; do
	IFS='/' read -r -a array <<< "$command"
	rm -rf features/*
	rsync -av --delete $command/ features/ > /dev/null
	for file in features/*.feature; do mv "$file" "${file%.feature}_${array[2]}.feature"; done
	composer du
	echo "Running tests for $command"
	sudo ./vendor/bin/behat
done

Add debugging to testing script
Add debugging to testing script

Signed-off-by: Riddhesh Sanghvi <0a70ea8c025ff62047a9ed827cdc1ae51a3d1c6b@gmail.com>
