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

[ci] Use extends instead of template-replacement in own ci file

parent b50ae184
No related branches found
No related tags found
1 merge request!103Enable py37
Pipeline #32959 passed
...@@ -12,57 +12,54 @@ stages: ...@@ -12,57 +12,54 @@ stages:
# Build targets # Build targets
.build_template: &build_job .build_template:
stage: build stage: build
script: script:
- python3 ./bob/devtools/bootstrap.py -vv build - python3 ./bob/devtools/bootstrap.py -vv build
- source ${CONDA_ROOT}/etc/profile.d/conda.sh - source ${CONDA_ROOT}/etc/profile.d/conda.sh
- conda activate base - conda activate base
- python3 ./bob/devtools/build.py -vv - python3 ./bob/devtools/build.py -vv
cache: &build_caches artifacts:
expire_in: 1 week
cache:
paths: paths:
- miniconda.sh - miniconda.sh
- ${CONDA_ROOT}/pkgs/*.tar.bz2 - ${CONDA_ROOT}/pkgs/*.tar.bz2
- ${CONDA_ROOT}/pkgs/urls.txt - ${CONDA_ROOT}/pkgs/urls.txt
.build_linux_template: &linux_build_job .build_linux_template:
<<: *build_job extends: .build_template
tags: tags:
- docker - docker
image: continuumio/conda-concourse-ci image: continuumio/conda-concourse-ci
artifacts: artifacts:
expire_in: 1 week
paths: paths:
- ${CONDA_ROOT}/conda-bld/linux-64/*.tar.bz2 - ${CONDA_ROOT}/conda-bld/linux-64/*.tar.bz2
- ${CONDA_ROOT}/conda-bld/noarch/*.tar.bz2 - ${CONDA_ROOT}/conda-bld/noarch/*.tar.bz2
cache: cache:
<<: *build_caches
key: "linux-cache" key: "linux-cache"
.build_macosx_template: &macosx_build_job .build_macosx_template:
<<: *build_job extends: .build_template
tags: tags:
- macosx - macosx
artifacts: artifacts:
expire_in: 1 week
paths: paths:
- ${CONDA_ROOT}/conda-bld/osx-64/*.tar.bz2 - ${CONDA_ROOT}/conda-bld/osx-64/*.tar.bz2
- ${CONDA_ROOT}/conda-bld/noarch/*.tar.bz2 - ${CONDA_ROOT}/conda-bld/noarch/*.tar.bz2
cache: cache:
<<: *build_caches
key: "macosx-cache" key: "macosx-cache"
build_linux_36: build_linux_36:
<<: *linux_build_job extends: .build_linux_template
variables: variables:
PYTHON_VERSION: "3.6" PYTHON_VERSION: "3.6"
build_linux_37: build_linux_37:
<<: *linux_build_job extends: .build_linux_template
variables: variables:
PYTHON_VERSION: "3.7" PYTHON_VERSION: "3.7"
BUILD_EGG: "true" BUILD_EGG: "true"
...@@ -72,28 +69,26 @@ build_linux_37: ...@@ -72,28 +69,26 @@ build_linux_37:
- conda activate base - conda activate base
- python3 ./bob/devtools/build.py -vv --twine-check - python3 ./bob/devtools/build.py -vv --twine-check
artifacts: artifacts:
expire_in: 1 week
paths: paths:
- dist/*.zip - dist/*.zip
- sphinx - sphinx
- ${CONDA_ROOT}/conda-bld/linux-64/*.tar.bz2 - ${CONDA_ROOT}/conda-bld/linux-64/*.tar.bz2
- ${CONDA_ROOT}/conda-bld/noarch/*.tar.bz2 - ${CONDA_ROOT}/conda-bld/noarch/*.tar.bz2
build_macosx_36: build_macosx_36:
<<: *macosx_build_job extends: .build_macosx_template
variables: variables:
PYTHON_VERSION: "3.6" PYTHON_VERSION: "3.6"
build_macosx_37: build_macosx_37:
<<: *macosx_build_job extends: .build_macosx_template
variables: variables:
PYTHON_VERSION: "3.7" PYTHON_VERSION: "3.7"
# Deploy targets # Deploy targets
.deploy_template: &deploy_job .deploy_template:
stage: deploy stage: deploy
script: script:
- python3 ./bob/devtools/bootstrap.py -vv local base - python3 ./bob/devtools/bootstrap.py -vv local base
...@@ -109,7 +104,7 @@ build_macosx_37: ...@@ -109,7 +104,7 @@ build_macosx_37:
- build_macosx_37 - build_macosx_37
tags: tags:
- docker - docker
cache: &build_caches cache:
paths: paths:
- miniconda.sh - miniconda.sh
- ${CONDA_ROOT}/pkgs/*.tar.bz2 - ${CONDA_ROOT}/pkgs/*.tar.bz2
...@@ -117,14 +112,14 @@ build_macosx_37: ...@@ -117,14 +112,14 @@ build_macosx_37:
deploy_beta: deploy_beta:
<<: *deploy_job extends: .deploy_template
environment: beta environment: beta
only: only:
- master - master
deploy_stable: deploy_stable:
<<: *deploy_job extends: .deploy_template
environment: stable environment: stable
only: only:
- /^v\d+\.\d+\.\d+([abc]\d*)?$/ # PEP-440 compliant version (tags) - /^v\d+\.\d+\.\d+([abc]\d*)?$/ # PEP-440 compliant version (tags)
...@@ -152,7 +147,7 @@ pypi: ...@@ -152,7 +147,7 @@ pypi:
- build_macosx_37 - build_macosx_37
tags: tags:
- docker - docker
cache: &build_caches cache:
paths: paths:
- miniconda.sh - miniconda.sh
- ${CONDA_ROOT}/pkgs/*.tar.bz2 - ${CONDA_ROOT}/pkgs/*.tar.bz2
......
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