Skip to content

Commit 734fd28

Browse files
committed
ADD: custom edx-platform repo and wp config vars
1 parent f43128b commit 734fd28

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

repo.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ repos=(
3030
"https://github.com/edx/ecommerce.git"
3131
"https://github.com/edx/edx-e2e-tests.git"
3232
"https://github.com/edx/edx-notes-api.git"
33-
"https://github.com/edx/edx-platform.git"
3433
"https://github.com/edx/xqueue.git"
3534
"https://github.com/edx/edx-analytics-pipeline.git"
3635
"https://github.com/edx/gradebook.git"
@@ -41,6 +40,8 @@ private_repos=(
4140
"https://github.com/edx/edx-themes.git"
4241
)
4342

43+
edx_repo="https://github.com/edly-io/edx-platform.git"
44+
4445
wp_plugin_repos=(
4546
"[email protected]:edly-io/edly-wp-plugin.git"
4647
)
@@ -133,11 +134,23 @@ _get_latest_wp_tag() {
133134

134135
clone ()
135136
{
137+
136138
_clone "${repos[@]}"
137139

138140
WP_PLUGIN_DIR=$DEVSTACK_WORKSPACE/wp_plugins
139141
WP_THEME_DIR=$DEVSTACK_WORKSPACE/wp_themes
140142

143+
# clone Edly edx-platform
144+
cd $DEVSTACK_WORKSPACE
145+
if [ ! -d $DEVSTACK_WORKSPACE/edx-platform ]; then
146+
git clone $edx_repo --branch develop
147+
else
148+
printf "The [%s] repo is already checked out. \n" $repo
149+
fi
150+
151+
152+
153+
141154
[ -d $WP_PLUGIN_DIR ] || mkdir $WP_PLUGIN_DIR
142155
[ -d $WP_THEME_DIR ] || mkdir $WP_THEME_DIR
143156

0 commit comments

Comments
 (0)