Commit 41f60931 authored by André Anjos's avatar André Anjos 💬

[before_build] Use master or tags only

parent ca650ba7
......@@ -7,25 +7,9 @@ GITLAB_CHECKOUT_STRATEGY="${GITLAB_CHECKOUT_STRATEGY:-git@gitlab.idiap.ch:}"
# Clone all packages
for pkg in `cat requirements.txt | sed -e '/^\s*#.*/d;/^\s*$/d'`; do
version=master
if [[ $pkg == "beat.cmdline" ]]; then
version=master
fi
if [[ $pkg == "beat.core" ]]; then
version=master
fi
if [[ $pkg == "beat.backend.python" ]]; then
version=master
fi
if [[ $pkg == "beat.web" ]]; then
version=master
fi
if [[ $pkg == "beat.editor" ]]; then
version=master
fi
git clone --depth 1 -b $version ${GITLAB_CHECKOUT_STRATEGY}beat/${pkg}.git doc/$pkg || \
git clone --depth 1 ${GITLAB_CHECKOUT_STRATEGY}beat/${pkg}.git doc/$pkg || \
{ git -C doc/$pkg reset --hard HEAD && \
git -C doc/$pkg checkout $version && \
git -C doc/$pkg checkout master && \
git -C doc/$pkg pull; }
if [[ -n "${CI_COMMIT_TAG}" ]]; then
git -C doc/$pkg fetch --tags
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment