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

Merge branch 'no-root-condarc' into 'master'

Remove /root/.condarc in docker images from continuum

See merge request !140
parents feadf62a 36f8b3e4
No related branches found
No related tags found
1 merge request!140Remove /root/.condarc in docker images from continuum
Pipeline #36250 passed
...@@ -31,6 +31,9 @@ stages: ...@@ -31,6 +31,9 @@ stages:
tags: tags:
- docker - docker
image: continuumio/conda-concourse-ci image: continuumio/conda-concourse-ci
before_script:
- 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
...@@ -94,6 +97,9 @@ build_macosx_37: ...@@ -94,6 +97,9 @@ build_macosx_37:
# Deploy targets # Deploy targets
.deploy_template: .deploy_template:
stage: deploy stage: deploy
before_script:
- 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
...@@ -136,6 +142,9 @@ pypi: ...@@ -136,6 +142,9 @@ pypi:
- /^v\d+\.\d+\.\d+([abc]\d*)?$/ # PEP-440 compliant version (tags) - /^v\d+\.\d+\.\d+([abc]\d*)?$/ # PEP-440 compliant version (tags)
except: except:
- branches - branches
before_script:
- 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
......
...@@ -36,6 +36,9 @@ build_linux: ...@@ -36,6 +36,9 @@ build_linux:
extends: .build_template extends: .build_template
tags: tags:
- docker - docker
before_script:
- 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"
......
...@@ -17,7 +17,12 @@ stages: ...@@ -17,7 +17,12 @@ stages:
# All stages are prepared the same, with a base set of commands # All stages are prepared the same, with a base set of commands
.bootstrap: .bootstrap:
tags:
- docker
image: continuumio/conda-concourse-ci
before_script: before_script:
- 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
...@@ -45,9 +50,6 @@ build: ...@@ -45,9 +50,6 @@ build:
- sphinx - sphinx
- ${CONDA_ROOT}/conda-bld/linux-64/*.conda - ${CONDA_ROOT}/conda-bld/linux-64/*.conda
- ${CONDA_ROOT}/conda-bld/linux-64/*.tar.bz2 - ${CONDA_ROOT}/conda-bld/linux-64/*.tar.bz2
tags:
- docker
image: continuumio/conda-concourse-ci
cache: cache:
key: "build" key: "build"
...@@ -61,9 +63,6 @@ build: ...@@ -61,9 +63,6 @@ build:
- bdt ci clean -vv - bdt ci clean -vv
dependencies: dependencies:
- build - build
tags:
- docker
image: continuumio/conda-concourse-ci
cache: cache:
key: "deploy" key: "deploy"
......
...@@ -17,6 +17,8 @@ stages: ...@@ -17,6 +17,8 @@ stages:
# All stages are prepared the same, with a base set of commands # All stages are prepared the same, with a base set of commands
.bootstrap: .bootstrap:
before_script: before_script:
- "[ -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
......
...@@ -19,6 +19,8 @@ stages: ...@@ -19,6 +19,8 @@ stages:
# All stages are prepared the same, with a base set of commands # All stages are prepared the same, with a base set of commands
.bootstrap: .bootstrap:
before_script: before_script:
- "[ -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.
Please register or to comment