diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-08-13 15:15:16 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-08-13 15:15:27 +0400 |
commit | 937bbca5e8c2959040694f9d5b06ae38a4a15f95 (patch) | |
tree | 6717b9d602b6a766840172163a24671f95e6a112 /tests | |
parent | 01a76d252e2ced05c85be4cfc672e8df417c7104 (diff) |
Refs #5962, add ability for .travis.yml file to check out dependent plugins using DEPENDENT_PLUGINS travis environment variable (set in .travis.yml file manually).
Diffstat (limited to 'tests')
-rw-r--r-- | tests/travis/checkout_dependent_plugins.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/travis/checkout_dependent_plugins.sh b/tests/travis/checkout_dependent_plugins.sh new file mode 100644 index 0000000000..73f9755a74 --- /dev/null +++ b/tests/travis/checkout_dependent_plugins.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# NOTE: should be removed when composer used to handle plugin dependencies + +if [ "$DEPENDENT_PLUGINS" == "" ]; then + echo "No dependent plugins." +else + echo "Cloning dependent plugins..." + echo "" + + for pluginSlug in "${DEPENDENT_PLUGINS[@]}" + do + dependentPluginName=`echo "$pluginSlug" | sed -E 's/[a-zA-Z0-9_]+-(.*)/\1/'` + + echo "Cloning $pluginSlug..." + git clone --depth=1 "https://$GITHUB_USER_TOKEN:@github.com/$pluginSlug" "plugins/$dependentPluginName" + done +fi
\ No newline at end of file |