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

move the clean process to after build

parent e2578189
No related branches found
No related tags found
No related merge requests found
#!/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/bob*.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"
#!/usr/bin/env bash #!/usr/bin/env bash
# Wed 21 Sep 2016 13:08:05 CEST
source $(dirname ${0})/functions.sh source $(dirname ${0})/functions.sh
...@@ -24,10 +23,3 @@ export_env BOB_BUILD_NUMBER ...@@ -24,10 +23,3 @@ export_env BOB_BUILD_NUMBER
run_cmd cp ./_ci/recipe_append.yaml conda/recipe_append.yaml run_cmd cp ./_ci/recipe_append.yaml conda/recipe_append.yaml
run_cmd ${CONDA_ROOT}/bin/conda build --no-anaconda-upload --variant-config-files _ci/conda_build_config.yaml --python=${PYTHON_VERSION} conda run_cmd ${CONDA_ROOT}/bin/conda build --no-anaconda-upload --variant-config-files _ci/conda_build_config.yaml --python=${PYTHON_VERSION} conda
# 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
run_cmd rm -rf ${CONDA_ROOT}/pkgs/bob*.tar.bz2
# run git clean to clean everything that is not needed
git clean -ffdx --exclude=miniconda.sh --exclude="miniconda/pkgs/*.tar.bz2" --exclude=miniconda/pkgs/urls.txt --exclude=_ci --exclude="miniconda/conda-bld/linux-64/*.tar.bz2" --exclude="miniconda/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.
Please register or to comment