This commit is contained in:
Nyholm
2020-06-25 12:39:07 +02:00
parent a7c052d3fd
commit 48113aa961
+6 -5
View File
@@ -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;