Skip to content
Snippets Groups Projects
Commit a7e16cbe authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

run git clean to clean-up build directories after build

parent f3941722
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment