Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / config / tests / scripts / install-scenario
diff --git a/vendor/consolidation/config/tests/scripts/install-scenario b/vendor/consolidation/config/tests/scripts/install-scenario
new file mode 100755 (executable)
index 0000000..d77d57d
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+SCENARIO=$1
+ACTION=${2-install}
+
+dir=dependencies/${SCENARIO}
+if [ -z "$SCENARIO" ] ; then
+  SCENARIO=default
+  dir=.
+fi
+
+
+if [ ! -d "$dir" ] ; then
+  echo "Requested scenario '${SCENARIO}' does not exist."
+  exit 1
+fi
+
+echo "Switch to ${SCENARIO} scenario"
+
+set -ex
+
+composer -n --working-dir=$dir ${ACTION} --prefer-dist --no-scripts
+composer -n --working-dir=$dir info