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

Simpler template

parent 11d83d6d
No related branches found
No related tags found
1 merge request!63Conda package based CI
# This build file uses template features from YAML so it is generic enough for # This build file uses template features from YAML so it is generic enough for
# any Bob project. Don't modify it unless you know what you're doing. # any Bob project. Don't modify it unless you know what you're doing.
# global variables
variables: variables:
CONDA_ENVS_PATH: "conda-env" CONDA_ROOT: "${CI_PROJECT_DIR}/miniconda"
CONDA_BLD_PATH: "conda-env"
# Definition of our build pipeline order # Definition of our build pipeline order
stages: stages:
...@@ -18,60 +15,60 @@ stages: ...@@ -18,60 +15,60 @@ stages:
.build_template: &build_job .build_template: &build_job
stage: build stage: build
before_script: before_script:
- export PATH=$CONDA_FOLDER/bin:$PATH
- mkdir _ci - mkdir _ci
- curl --silent "https://gitlab.idiap.ch/bob/bob.admin/raw/condapackage/gitlab/install.sh" > _ci/install.sh - curl --silent "https://gitlab.idiap.ch/bob/bob.admin/raw/condapackage/gitlab/install.sh" > _ci/install.sh
- chmod 755 _ci/install.sh - chmod 755 _ci/install.sh
- ./_ci/install.sh _ci condapackage #installs ci support scripts - ./_ci/install.sh _ci condapackage #installs ci support scripts
- ./_ci/before_build.sh - ./_ci/before_build.sh
variables: &build_variables
CONDA_FOLDER: "${CI_PROJECT_DIR}/${CONDA_ENVS_PATH}"
script: script:
- ./_ci/build.sh - ./_ci/build.sh
cache: &build_caches
paths:
- miniconda.sh
- ${CONDA_ROOT}/pkgs/*.tar.bz2
- ${CONDA_ROOT}/pkgs/urls.txt
.build_linux_template: &linux_build_job .build_linux_template: &linux_build_job
<<: *build_job <<: *build_job
tags:
- docker
image: continuumio/conda-concourse-ci
artifacts: artifacts:
expire_in: 1 week expire_in: 1 week
paths: paths:
- _ci/ - _ci/
- ${CONDA_ENVS_PATH}/linux-64/*.tar.bz2 - ${CONDA_ROOT}/conda-bld/linux-64/*.tar.bz2
tags:
- docker
image: continuumio/conda-concourse-ci
cache: cache:
<<: *build_caches
key: "linux-cache" key: "linux-cache"
paths:
- ${CONDA_ENVS_PATH}/.pkgs/*.tar.bz2
- ${CONDA_ENVS_PATH}/.pkgs/urls.txt
.build_macosx_template: &macosx_build_job .build_macosx_template: &macosx_build_job
<<: *build_job <<: *build_job
tags:
- macosx
artifacts: artifacts:
expire_in: 1 week expire_in: 1 week
paths: paths:
- _ci/ - _ci/
- ${CONDA_ENVS_PATH}/osx-64/*.tar.bz2 - ${CONDA_ROOT}/conda-bld/osx-64/*.tar.bz2
tags:
- macosx
cache: cache:
<<: *build_caches
key: "macosx-cache" key: "macosx-cache"
paths:
- miniconda.sh
- ${CONDA_ENVS_PATH}/pkgs/*.tar.bz2
- ${CONDA_ENVS_PATH}/pkgs/urls.txt
build_linux_27: build_linux_27:
<<: *linux_build_job <<: *linux_build_job
variables: variables:
<<: *linux_variables <<: *build_variables
PYTHON_VERSION: "2.7" PYTHON_VERSION: "2.7"
build_linux_36: build_linux_36:
<<: *linux_build_job <<: *linux_build_job
variables: variables:
<<: *linux_variables <<: *build_variables
PYTHON_VERSION: "3.6" PYTHON_VERSION: "3.6"
BUILD_EGG: "true" BUILD_EGG: "true"
artifacts: artifacts:
...@@ -80,7 +77,8 @@ build_linux_36: ...@@ -80,7 +77,8 @@ build_linux_36:
- _ci/ - _ci/
- dist/*.zip - dist/*.zip
- sphinx - sphinx
- ${CONDA_ENVS_PATH}/linux-64/*.tar.bz2 - ${CONDA_ROOT}/conda-bld/linux-64/*.tar.bz2
build_macosx_27: build_macosx_27:
<<: *macosx_build_job <<: *macosx_build_job
...@@ -88,6 +86,7 @@ build_macosx_27: ...@@ -88,6 +86,7 @@ build_macosx_27:
<<: *build_variables <<: *build_variables
PYTHON_VERSION: "2.7" PYTHON_VERSION: "2.7"
build_macosx_36: build_macosx_36:
<<: *macosx_build_job <<: *macosx_build_job
variables: variables:
...@@ -110,6 +109,7 @@ build_macosx_36: ...@@ -110,6 +109,7 @@ build_macosx_36:
tags: tags:
- deployer - deployer
deploy_beta: deploy_beta:
<<: *deploy_job <<: *deploy_job
environment: beta environment: beta
...@@ -117,6 +117,7 @@ deploy_beta: ...@@ -117,6 +117,7 @@ deploy_beta:
- master - master
- condapackage - condapackage
deploy_stable: deploy_stable:
<<: *deploy_job <<: *deploy_job
environment: stable environment: stable
......
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