.gitlab-ci.yml 1.35 KB
Newer Older
Aitor Henry's avatar
Aitor Henry committed
1 2
stages:
  - build
3
  - build-noarch
4 5
  - deploy

6
.build-conda: &build-conda
7 8 9 10 11 12
  stage: build
  artifacts:
    paths:
      - dist/
  tags:
    - conda
13 14 15 16 17 18

build-linux:
  <<: *build-conda
  script:
    - conda build ./conda/camera --prefix-length=80 --output-folder=dist/ --channel=http://bcu-ci.esrf.fr/stable
  tags:
19
    - linux
Aitor Henry's avatar
Aitor Henry committed
20

21
build-win:
22
  <<: *build-conda
Aitor Henry's avatar
Aitor Henry committed
23
  script:
24 25 26 27 28
    - conda build ./conda/camera --prefix-length=80 --output-folder=dist/ --channel=http://bcu-ci.esrf.fr/stable
  tags:
    - win

build-noarch:
29
  <<: *build-conda
30
  stage: build-noarch
31 32
  script:
    - conda build ./conda/tango --prefix-length=80 --output-folder=dist/ --channel=http://bcu-ci.esrf.fr/stable
33 34 35
  dependencies:
    - build-linux
    - build-win
36

37
deploy-devel:
38 39 40 41 42 43 44 45 46 47 48 49 50 51
  stage: deploy
  environment:
    name: devel/$CI_COMMIT_REF_NAME
    url: http://bcu-ci.esrf.fr/devel
  dependencies:
    - build-linux
    - build-win
    - build-noarch
  script:
    - cp -Rf dist/* /conda-devel/
    - conda index /conda-devel/
  tags:
    - conda
    - linux
52
  only:
53 54 55 56 57
    - branches
  except:
    - stable
  when: manual

58
deploy-stable:
59 60 61 62
  stage: deploy
  environment:
    name: production
    url: http://bcu-ci.esrf.fr/stable
Aitor Henry's avatar
Aitor Henry committed
63
  dependencies:
64 65 66
    - build-linux
    - build-win
    - build-noarch
Aitor Henry's avatar
Aitor Henry committed
67
  script:
68 69 70 71 72
    - cp -Rf dist/* /conda/
    - conda index /conda/
  tags:
    - conda
    - linux
Aitor Henry's avatar
Aitor Henry committed
73
  only:
74 75
    - tags
    - stable