Skip to content

Commit

Permalink
Skip lint:container command if it does not exist (Symfony < 4.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
pamil committed Dec 11, 2019
1 parent 3392592 commit ddb6cd0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion etc/travis/suites/application/script/validate-container
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../../../../bash/common.lib.sh"

print_header "Validating (DI Container)" "Sylius"
run_command "bin/console lint:container"

if [ "$(bin/console list | grep lint:container -c)" = 1 ]; then
run_command "bin/console lint:container"
else
print_info "lint:container command not found, skipped"
fi

0 comments on commit ddb6cd0

Please sign in to comment.