base-build.yaml 1.21 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# This YAML file contains descriptions for the CI of most of our Bob/BEAT/BATL
# packages - do **not** modify it unless you know what you're doing (and up
# to!)

# Definition of global variables (all stages)
variables:
  CONDA_ROOT: "${CI_PROJECT_DIR}/miniconda"
  BOOTSTRAP: "https://gitlab.idiap.ch/bob/bob.devtools/raw/master/bob/devtools/bootstrap.py"


# Definition of our build pipeline order
stages:
  - build


# Build targets
.build_template: &build_job
  stage: build
  script:
    - curl --silent "${BOOTSTRAP}" --output "bootstrap.py"
    - python3 bootstrap.py -vv channel base
    - source ${CONDA_ROOT}/etc/profile.d/conda.sh
    - conda activate base
24
    - bdt ci base-build -vv nopython.txt
25
    - bdt ci base-build -vv --python=3.6 python.txt
26
    - '[ "${CI_COMMIT_REF_NAME}" = "master" ] && bdt ci base-deploy -vv'
27
28
29
30
31
32
33
34
    - bdt ci clean -vv
  cache: &build_caches
    paths:
      - miniconda.sh
      - ${CONDA_ROOT}/pkgs/*.tar.bz2
      - ${CONDA_ROOT}/pkgs/urls.txt


35
build_linux:
36
37
38
39
40
41
42
43
  <<: *build_job
  tags:
    - docker
  image: continuumio/conda-concourse-ci
  cache:
    <<: *build_caches
    key: "linux-cache"

44
45

build_macosx:
46
47
48
49
50
51
  <<: *build_job
  tags:
    - macosx
  cache:
    <<: *build_caches
    key: "macosx-cache"