mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[Travis] Ensure fatal error makes job failing
This commit is contained in:
parent
987cc50b64
commit
41051b0130
2 changed files with 28 additions and 12 deletions
|
|
@ -26,19 +26,27 @@ prepare_for_behat_with_js() {
|
||||||
}
|
}
|
||||||
|
|
||||||
run_brand_new_behat() {
|
run_brand_new_behat() {
|
||||||
|
local code=0
|
||||||
|
|
||||||
print_header "Testing (Behat - brand new, javascript scenarios; @javascript && ~@legacy && ~@todo && ~@cli)" "Sylius"
|
print_header "Testing (Behat - brand new, javascript scenarios; @javascript && ~@legacy && ~@todo && ~@cli)" "Sylius"
|
||||||
run_command "bin/behat --strict -f progress -p cached --tags=\"@javascript && ~@legacy && ~@todo && ~@cli\""
|
run_command "bin/behat --strict -f progress -p cached --tags=\"@javascript && ~@legacy && ~@todo && ~@cli\"" || code=$?
|
||||||
if [[ $? = 1 ]]; then
|
if [[ ${code} = 1 ]]; then
|
||||||
run_command "bin/behat --strict -f progress -p cached --tags=\"@javascript && ~@legacy && ~@todo && ~@cli\" --rerun"
|
run_command "bin/behat --strict -f progress -p cached --tags=\"@javascript && ~@legacy && ~@todo && ~@cli\" --rerun" ; code=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
return ${code}
|
||||||
}
|
}
|
||||||
|
|
||||||
run_legacy_behat() {
|
run_legacy_behat() {
|
||||||
|
local code=0
|
||||||
|
|
||||||
print_header "Testing (Behat - legacy, javascript scenarios; @javascript && @legacy && ~@todo && ~@cli)" "Sylius"
|
print_header "Testing (Behat - legacy, javascript scenarios; @javascript && @legacy && ~@todo && ~@cli)" "Sylius"
|
||||||
run_command "bin/behat --strict -f progress -p cached --tags=\"@javascript && @legacy && ~@todo && ~@cli\""
|
run_command "bin/behat --strict -f progress -p cached --tags=\"@javascript && @legacy && ~@todo && ~@cli\"" || code=$?
|
||||||
if [[ $? = 1 ]]; then
|
if [[ ${code} = 1 ]]; then
|
||||||
run_command "bin/behat --strict -f progress -p cached --tags=\"@javascript && @legacy && ~@todo && ~@cli\" --rerun"
|
run_command "bin/behat --strict -f progress -p cached --tags=\"@javascript && @legacy && ~@todo && ~@cli\" --rerun" ; code=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
return ${code}
|
||||||
}
|
}
|
||||||
|
|
||||||
run_behat() {
|
run_behat() {
|
||||||
|
|
|
||||||
|
|
@ -3,19 +3,27 @@
|
||||||
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../../../../bash/common.lib.sh"
|
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../../../../bash/common.lib.sh"
|
||||||
|
|
||||||
run_brand_new_behat() {
|
run_brand_new_behat() {
|
||||||
|
local code=0
|
||||||
|
|
||||||
print_header "Testing (Behat - brand new, regular scenarios; ~@javascript && ~@legacy && ~@todo && ~@cli)" "Sylius"
|
print_header "Testing (Behat - brand new, regular scenarios; ~@javascript && ~@legacy && ~@todo && ~@cli)" "Sylius"
|
||||||
run_command "bin/behat --strict -f progress -p cached --tags=\"~@javascript && ~@legacy && ~@todo && ~@cli\""
|
run_command "bin/behat --strict -f progress -p cached --tags=\"~@javascript && ~@legacy && ~@todo && ~@cli\"" || code=$?
|
||||||
if [[ $? = 1 ]]; then
|
if [[ ${code} = 1 ]]; then
|
||||||
run_command "bin/behat --strict -f progress -p cached --tags=\"~@javascript && ~@legacy && ~@todo && ~@cli\" --rerun"
|
run_command "bin/behat --strict -f progress -p cached --tags=\"~@javascript && ~@legacy && ~@todo && ~@cli\" --rerun" ; code=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
return ${code}
|
||||||
}
|
}
|
||||||
|
|
||||||
run_legacy_behat() {
|
run_legacy_behat() {
|
||||||
|
local code=0
|
||||||
|
|
||||||
print_header "Testing (Behat - legacy, regular scenarios; ~@javascript && @legacy && ~@todo && ~@cli)" "Sylius"
|
print_header "Testing (Behat - legacy, regular scenarios; ~@javascript && @legacy && ~@todo && ~@cli)" "Sylius"
|
||||||
run_command "bin/behat --strict -f progress -p cached --tags=\"~@javascript && @legacy && ~@todo && ~@cli\""
|
run_command "bin/behat --strict -f progress -p cached --tags=\"~@javascript && @legacy && ~@todo && ~@cli\"" || code=$?
|
||||||
if [[ $? = 1 ]]; then
|
if [[ ${code} = 1 ]]; then
|
||||||
run_command "bin/behat --strict -f progress -p cached --tags=\"~@javascript && @legacy && ~@todo && ~@cli\" --rerun" || EXIT_CODE=$?
|
run_command "bin/behat --strict -f progress -p cached --tags=\"~@javascript && @legacy && ~@todo && ~@cli\" --rerun" ; code=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
return ${code}
|
||||||
}
|
}
|
||||||
|
|
||||||
run_behat() {
|
run_behat() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue