4 DEPENDENCIES=${2-install}
6 # Convert the aliases 'highest', 'lowest' and 'lock' to
7 # the corresponding composer command to run.
13 DEPENDENCIES='update --prefer-lowest'
20 original_name=scenarios
21 recommended_name=".scenarios.lock"
24 if [ -d "$recommended_name" ] ; then
25 base="$recommended_name"
28 # If scenario is not specified, install the lockfile at
29 # the root of the project.
30 dir="$base/${SCENARIO}"
31 if [ -z "$SCENARIO" ] || [ "$SCENARIO" == "default" ] ; then
36 # Test to make sure that the selected scenario exists.
37 if [ ! -d "$dir" ] ; then
38 echo "Requested scenario '${SCENARIO}' does not exist."
44 echo ":: Switch to ${SCENARIO} scenario"
50 composer -n validate --working-dir=$dir --no-check-all --ansi
51 composer -n --working-dir=$dir ${DEPENDENCIES} --prefer-dist --no-scripts
52 composer -n --working-dir=$dir info