Skip to content
Snippets Groups Projects
Commit 36f8b3e4 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[data] Also remove .conda directory if it exists

parent 4e6df39a
No related branches found
No related tags found
1 merge request!140Remove /root/.condarc in docker images from continuum
Pipeline #36249 passed
...@@ -33,6 +33,7 @@ stages: ...@@ -33,6 +33,7 @@ stages:
image: continuumio/conda-concourse-ci image: continuumio/conda-concourse-ci
before_script: before_script:
- rm -f /root/.condarc - rm -f /root/.condarc
- rm -rf /root/.conda
artifacts: artifacts:
paths: paths:
- ${CONDA_ROOT}/conda-bld/linux-64/*.conda - ${CONDA_ROOT}/conda-bld/linux-64/*.conda
...@@ -98,6 +99,7 @@ build_macosx_37: ...@@ -98,6 +99,7 @@ build_macosx_37:
stage: deploy stage: deploy
before_script: before_script:
- rm -f /root/.condarc - rm -f /root/.condarc
- rm -rf /root/.conda
script: script:
- python3 ./bob/devtools/bootstrap.py -vv local base - python3 ./bob/devtools/bootstrap.py -vv local base
- source ${CONDA_ROOT}/etc/profile.d/conda.sh - source ${CONDA_ROOT}/etc/profile.d/conda.sh
...@@ -142,6 +144,7 @@ pypi: ...@@ -142,6 +144,7 @@ pypi:
- branches - branches
before_script: before_script:
- rm -f /root/.condarc - rm -f /root/.condarc
- rm -rf /root/.conda
script: script:
- python3 ./bob/devtools/bootstrap.py -vv local base - python3 ./bob/devtools/bootstrap.py -vv local base
- source ${CONDA_ROOT}/etc/profile.d/conda.sh - source ${CONDA_ROOT}/etc/profile.d/conda.sh
......
...@@ -38,6 +38,7 @@ build_linux: ...@@ -38,6 +38,7 @@ build_linux:
- docker - docker
before_script: before_script:
- rm -f /root/.condarc - rm -f /root/.condarc
- rm -rf /root/.conda
image: continuumio/conda-concourse-ci image: continuumio/conda-concourse-ci
cache: cache:
key: "linux-cache" key: "linux-cache"
......
...@@ -22,6 +22,7 @@ stages: ...@@ -22,6 +22,7 @@ stages:
image: continuumio/conda-concourse-ci image: continuumio/conda-concourse-ci
before_script: before_script:
- rm -f /root/.condarc - rm -f /root/.condarc
- rm -rf /root/.conda
- curl --silent "${BOOTSTRAP}" --output "bootstrap.py" - curl --silent "${BOOTSTRAP}" --output "bootstrap.py"
- python3 bootstrap.py -vv channel base - python3 bootstrap.py -vv channel base
- source ${CONDA_ROOT}/etc/profile.d/conda.sh - source ${CONDA_ROOT}/etc/profile.d/conda.sh
......
...@@ -18,6 +18,7 @@ stages: ...@@ -18,6 +18,7 @@ stages:
.bootstrap: .bootstrap:
before_script: before_script:
- "[ -r /root/.condarc ] && rm -f /root/.condarc" - "[ -r /root/.condarc ] && rm -f /root/.condarc"
- "[ -d /root/.conda ] && rm -rf /root/.conda"
- curl --silent "${BOOTSTRAP}" --output "bootstrap.py" - curl --silent "${BOOTSTRAP}" --output "bootstrap.py"
- python3 bootstrap.py -vv channel base - python3 bootstrap.py -vv channel base
- source ${CONDA_ROOT}/etc/profile.d/conda.sh - source ${CONDA_ROOT}/etc/profile.d/conda.sh
......
...@@ -20,6 +20,7 @@ stages: ...@@ -20,6 +20,7 @@ stages:
.bootstrap: .bootstrap:
before_script: before_script:
- "[ -r /root/.condarc ] && rm -f /root/.condarc" - "[ -r /root/.condarc ] && rm -f /root/.condarc"
- "[ -d /root/.conda ] && rm -rf /root/.conda"
- curl --silent "${BOOTSTRAP}" --output "bootstrap.py" - curl --silent "${BOOTSTRAP}" --output "bootstrap.py"
- python3 bootstrap.py -vv channel base - python3 bootstrap.py -vv channel base
- source ${CONDA_ROOT}/etc/profile.d/conda.sh - source ${CONDA_ROOT}/etc/profile.d/conda.sh
......
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