diff --git a/.travis.yml b/.travis.yml index a13bbb23..3aed479f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,17 +28,18 @@ install: script: - | - EXIT_CODE=$(composer req --ignore-platform-reqs $(echo $PACKAGES)); + composer req --ignore-platform-reqs $(echo $PACKAGES) + EXIT_CODE=$? echo "Exit code: $EXIT_CODE"; + MESSAGE=""; if [[ EXIT_CODE -eq 0 ]]; then exit 0; elif [[ EXIT_CODE -eq 1 ]]; then - echo "Could not install package"; - exit 1; + MESSAGE="Could not install package"; elif [[ EXIT_CODE -eq 2 ]]; then - echo "Could not resolve dependencies. You can ignore this error if your package does not support Symfony $SKELETON_VERSION"; - exit 1; + MESSAGE="Could not resolve dependencies. You can ignore this error if your package does not support Symfony $SKELETON_VERSION"; fi + echo -e "#\n#\n#\n#\n# $MESSAGE\n#\n#\n#\n#\n"; exit $EXIT_CODE;