From a7e16cbebff6cec3cb283e16b8353c61fc6d1e86 Mon Sep 17 00:00:00 2001 From: Amir MOHAMMADI <amir.mohammadi@idiap.ch> Date: Fri, 9 Feb 2018 20:00:17 +0100 Subject: [PATCH] run git clean to clean-up build directories after build --- gitlab/build.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gitlab/build.sh b/gitlab/build.sh index 214531a..c93f4ab 100755 --- a/gitlab/build.sh +++ b/gitlab/build.sh @@ -29,9 +29,5 @@ run_cmd ${CONDA_ROOT}/bin/conda build --no-anaconda-upload --variant-config-file # over and over. See https://gitlab.idiap.ch/bob/bob.admin/issues/65 run_cmd rm -rf ${CONDA_ROOT}/pkgs/bob*.tar.bz2 -# remove environments create by conda-build. -run_cmd ${CONDA_ROOT}/bin/conda build purge - -# remove un-used cached conda packages (extracted directories in pkgs/) so that -# builds take less space. This does not delete the tarballs. -run_cmd ${CONDA_ROOT}/bin/conda clean --packages +# run git clean to clean everything that is not needed +run_cmd git clean -ffdx --exclude=miniconda.sh --exclude="${CONDA_ROOT}/pkgs/*.tar.bz2" --exclude=${CONDA_ROOT}/pkgs/urls.txt --exclude=_ci --exclude="${CONDA_ROOT}/conda-bld/linux-64/*.tar.bz2" --exclude="${CONDA_ROOT}/conda-bld/osx-64/*.tar.bz2" --exclude="dist/*.zip" --exclude=sphinx -- GitLab