Skip to content
Snippets Groups Projects
after_build.sh 818 B
#!/usr/bin/env bash

source $(dirname ${0})/functions.sh

# delete the bob packages from the cache otherwise the cache keeps increasing
# over and over. See https://gitlab.idiap.ch/bob/bob.admin/issues/65
rm -rf ${CONDA_ROOT}/pkgs/batl*.tar.bz2
rm -rf ${CONDA_ROOT}/pkgs/beat*.tar.bz2
rm -rf ${CONDA_ROOT}/pkgs/bob*.tar.bz2
rm -rf ${CONDA_ROOT}/pkgs/gridtk*.tar.bz2

# run git clean to clean everything that is not needed. This helps to keep the
# disk usage on CI machines to minimum.
git clean -ffdx \
    --exclude="miniconda.sh" \
    --exclude="miniconda/pkgs/*.tar.bz2" \
    --exclude="miniconda/pkgs/urls.txt" \
    --exclude="miniconda/conda-bld/linux-64/*.tar.bz2" \
    --exclude="miniconda/conda-bld/osx-64/*.tar.bz2" \
    --exclude="_ci" \
    --exclude="dist/*.zip" \
    --exclude="sphinx" > /dev/null