Commit 38f67274 authored by André Anjos's avatar André Anjos 💬
Browse files

Preparations for Bob v4 release

* Remove all outdated files
* Port to new CI (closes #25, closes #44)
* Activate caching (closes #43)
parent 7582d0ce
Pipeline #16690 failed with stage
in 24 seconds
# Definition of global variables (all stages)
variables:
CONDA_ROOT: "${CI_PROJECT_DIR}/miniconda"
# Definition of our build pipeline order
stages:
- build
- deploy
variables:
CONDA_ENVS_PATH: "conda-env"
CONDA_BLD_PATH: "conda-env"
CHANNEL_URL: "http://www.idiap.ch/software/bob/conda/label/main"
UPLOAD_URL: "http://www.idiap.ch/public-upload/conda/label/main"
CONDA_NPY: "112"
PYTHONUNBUFFERED: "1"
# Build targets
.build_template: &build_job
stage: build
before_script:
- export PATH=/usr/local/bin:$PATH
- source /opt/miniconda/bin/activate
- mkdir _ci
- curl --silent "https://gitlab.idiap.ch/bob/bob.admin/raw/master/gitlab/install.sh" > _ci/install.sh
- chmod 755 _ci/install.sh
- ./_ci/install.sh _ci master #installs ci support scripts
- ./_ci/before_build.sh
script:
- echo "default_channels:" > $HOME/.condarc
- echo " - https://repo.continuum.io/pkgs/main" >> $HOME/.condarc
- echo " - https://repo.continuum.io/pkgs/free" >> $HOME/.condarc
- echo " - https://repo.continuum.io/pkgs/r" >> $HOME/.condarc
- echo " - https://repo.continuum.io/pkgs/pro" >> $HOME/.condarc
- conda config --set add_pip_as_python_dependency false
- conda config --set always_yes true
- conda config --set show_channel_urls true
- conda config --set anaconda_upload no
- conda config --add channels ${CHANNEL_URL}
- conda config --set ssl_verify false
- conda install --quiet --yes -c defaults python conda=4.4 curl conda-build=3
- source /opt/miniconda/etc/profile.d/conda.sh
- conda activate base
- conda clean --lock
- conda info
- scripts/build.py order_of_build.txt conda_build_config.yaml
cache:
- scripts/build.py _ci/conda_build_config.yaml
after_script:
- ./_ci/after_build.sh
cache: &build_caches
key: "$CI_BUILD_NAME"
paths:
- conda-env/.pkgs/*.tar.bz2
- conda-env/.pkgs/urls.txt
- conda-env/src_cache
- miniconda.sh
- ${CONDA_ROOT}/pkgs/*.tar.bz2
- ${CONDA_ROOT}/pkgs/urls.txt
- ${CONDA_ROOT}/src_cache
build-linux-64:
build_linux:
<<: *build_job
image: continuumio/conda-concourse-ci
after_script:
- ./scripts/upload-packages.sh linux-64
- ./scripts/upload-packages.sh noarch
tags:
- docker
image: continuumio/conda-concourse-ci
artifacts:
expire_in: 1 week
paths:
- _ci/
- ${CONDA_ROOT}/conda-bld/linux-64/*.tar.bz2
build-osx-64:
build_macosx:
<<: *build_job
after_script:
- ./scripts/upload-packages.sh osx-64
tags:
- conda-macosx
- macosx
artifacts:
expire_in: 1 week
paths:
- _ci/
- ${CONDA_ROOT}/conda-bld/osx-64/*.tar.bz2
# Deploy built packages
deploy:
stage: deploy
before_script:
- ./_ci/install.sh _ci master #updates ci support scripts
script:
- ./scripts/deploy.sh
dependencies:
- build_linux
- build_macosx
tags:
- deployer
environment: stable
only:
- master
# Conda recipes for the bob channel
# Conda recipes for bob dependencies not available in the defaults channel
This package contains scripts and recipes for building dependencies packages of
Bob for Conda.
## Folder structure
There are several folder inside this repository and they are organized like
this:
There are two folders inside this repository and they are organized like this:
- `conda`: A folder to keep the recipes for packages.
- `scripts`: Contains some useful scripts.
- `dependencies` A folder to keep the recipes for packages.
- `scripts` Contains some useful scripts.
## Adding a new package
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment