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

Revert "[ci] remove rm -f /root/.condarc instances"

This reverts commit d088f518.
parent 1223698e
No related branches found
No related tags found
1 merge request!245Use conda-forge channel as the base for our builds
...@@ -15,10 +15,6 @@ stages: ...@@ -15,10 +15,6 @@ stages:
# Build targets # Build targets
.build_template: .build_template:
stage: build stage: build
before_script:
- python3 ./bob/devtools/bootstrap.py -vv build
- source ${CONDA_ROOT}/etc/profile.d/conda.sh
- conda activate base
artifacts: artifacts:
expire_in: 1 week expire_in: 1 week
cache: cache:
...@@ -33,7 +29,13 @@ stages: ...@@ -33,7 +29,13 @@ stages:
BUILD_EGG: "true" BUILD_EGG: "true"
tags: tags:
- docker - docker
image: quay.io/condaforge/linux-anvil-comp7 image: quay.io/condaforge/linux-anvil-cos7-x86_64
before_script:
- rm -f /root/.condarc
- rm -rf /root/.conda
- python3 ./bob/devtools/bootstrap.py -vv build
- source ${CONDA_ROOT}/etc/profile.d/conda.sh
- conda activate base
artifacts: artifacts:
paths: paths:
- dist/*.zip - dist/*.zip
...@@ -51,6 +53,10 @@ stages: ...@@ -51,6 +53,10 @@ stages:
tags: tags:
- macos - macos
- intel - intel
before_script:
- python3 ./bob/devtools/bootstrap.py -vv build
- source ${CONDA_ROOT}/etc/profile.d/conda.sh
- conda activate base
artifacts: artifacts:
paths: paths:
- ${CONDA_ROOT}/conda-bld/osx-64/*.conda - ${CONDA_ROOT}/conda-bld/osx-64/*.conda
...@@ -97,6 +103,9 @@ build_macos_intel_bob_devtools: ...@@ -97,6 +103,9 @@ build_macos_intel_bob_devtools:
# 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
...@@ -141,6 +150,9 @@ pypi: ...@@ -141,6 +150,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
......
...@@ -32,6 +32,9 @@ build_linux: ...@@ -32,6 +32,9 @@ build_linux:
extends: .build_template extends: .build_template
tags: tags:
- docker - docker
before_script:
- rm -f /root/.condarc
- rm -rf /root/.conda
image: quay.io/condaforge/linux-anvil-comp7 image: quay.io/condaforge/linux-anvil-comp7
cache: cache:
key: "linux-cache" key: "linux-cache"
......
...@@ -22,6 +22,8 @@ stages: ...@@ -22,6 +22,8 @@ stages:
- docker - docker
image: quay.io/condaforge/linux-anvil-comp7 image: quay.io/condaforge/linux-anvil-comp7
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
......
...@@ -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
......
...@@ -21,6 +21,8 @@ stages: ...@@ -21,6 +21,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 bdt - python3 bootstrap.py -vv channel bdt
- source ${CONDA_ROOT}/etc/profile.d/conda.sh - source ${CONDA_ROOT}/etc/profile.d/conda.sh
......
...@@ -21,6 +21,8 @@ stages: ...@@ -21,6 +21,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 bdt - python3 bootstrap.py -vv channel bdt
- 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