Merge pull request #6569 from pamil/a-bulwa-travis-is

[Travis] Temporary fix: partition Behat with JS
This commit is contained in:
Michał Marcinkowski 2016-10-27 20:39:10 +07:00 committed by GitHub
commit 85c8214309

View file

@ -29,10 +29,14 @@ run_behat() {
local code=0
print_header "Testing (Behat - brand new, javascript scenarios; @javascript && ~@todo && ~@cli)" "Sylius"
run_command "bin/behat --strict --no-interaction -vvv -f progress -p cached --tags=\"@javascript && ~@todo && ~@cli\"" || code=$?
if [[ ${code} = 1 ]]; then
run_command "bin/behat --strict --no-interaction -vvv -f progress -p cached --tags=\"@javascript && ~@todo && ~@cli\" --rerun" ; code=$?
fi
for path in features/*
do
run_command "bin/behat $path --no-interaction -vvv -f progress -p cached --tags=\"@javascript && ~@todo && ~@cli\"" || code=$?
if [[ ${code} = 1 ]]; then
run_command "bin/behat $path --no-interaction -vvv -f progress -p cached --tags=\"@javascript && ~@todo && ~@cli\" --rerun" ; code=$?
fi
done
return ${code}
}