Skip to content
.gitlab-ci.yml 1.44 KiB
Newer Older
Aitor Henry's avatar
Aitor Henry committed
stages:
  - build
.build-conda: &build-conda
Aitor Henry's avatar
Aitor Henry committed
  stage: build
  artifacts:
    paths:
  script:
    - git submodule update --init --recursive third-party/bitshuffle
    - conda build ./conda/debug --prefix-length=80 --output-folder=dist/ --channel=http://bcu-ci.esrf.fr/stable
    - conda build ./conda/release --prefix-length=80 --output-folder=dist/ --channel=http://bcu-ci.esrf.fr/stable
Samuel Debionne's avatar
Samuel Debionne committed
build-win:
  script:
    - git submodule update --init --recursive third-party/bitshuffle
    - call conda build ./conda/debug --prefix-length=80 --output-folder=dist/ --channel=http://bcu-ci.esrf.fr/stable
    - call conda build ./conda/release --prefix-length=80 --output-folder=dist/ --channel=http://bcu-ci.esrf.fr/stable
  tags:
    - win

deploy-devel:
  stage: deploy
  environment:
    name: devel/$CI_COMMIT_REF_NAME
    url: http://bcu-ci.esrf.fr/devel
  dependencies:
    - build-linux
    - build-win
    - cp -Rf dist/* /conda-devel/
    - conda index /conda-devel/
    - linux
  only:
    - branches
  except:
    - stable
  when: manual
  stage: deploy
  environment:
    name: production
    url: http://bcu-ci.esrf.fr/stable
Aitor Henry's avatar
Aitor Henry committed
  dependencies:
Samuel Debionne's avatar
Samuel Debionne committed
    - build-linux
    - build-win
Aitor Henry's avatar
Aitor Henry committed
  script:
    - cp -Rf dist/* /conda/
    - conda index /conda/