Commit 890111f2 authored by guillaume pernot's avatar guillaume pernot

Splitted conda-build and conda-deploy

parent d8b94a92
......@@ -355,19 +355,38 @@ conda-linux-build:
extends: .common
stage: build
only:
- develop
- /^release-[0-9]+\.[0-9]+$/
# - develop@orfeotoolbox/otb
# - /^release-[0-9]+\.[0-9]+$/@orfeotoolbox/otb
- nightly
- /^release-[0-9]+\.[0-9]+$/@orfeotoolbox/otb
image: $BUILD_IMAGE_REGISTRY/otb-conda-build:latest
allow_failure: true
before_script:
- export CI_SKIP_CDASH=1
script:
- export otb_tag=${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA}
- ./CI/conda_build.sh
after_script: []
needs:
- job: fast-build
artifacts: false
artifacts:
when: always
expire_in: 24 hrs
paths:
- conda-bld/*
conda-linux-deploy:
extends: .general
stage: deploy
only:
- /^release-[0-9]+\.[0-9]+$/@orfeotoolbox/otb
image: $BUILD_IMAGE_REGISTRY/otb-conda-build:latest
before_script:
# Provision efficiently the local LFS cache before checkout
- git lfs fetch origin $CI_COMMIT_SHA
- git checkout -f -q $CI_COMMIT_SHA
script:
- ./CI/conda_deploy.sh
needs:
- job: conda-linux-build
artifacts: yes
#---------------------------- Deploy job ---------------------------------------
deploy:
......
......@@ -26,15 +26,13 @@ source /build/anaconda3/bin/activate
cd /build/staged-recipes/recipes/
ANACONDA_ORGANIZATION="orfeotoolbox"
conda build ${CONDA_BUILD_OPTIONS} muparserx
conda build ${CONDA_BUILD_OPTIONS} openthreads
conda build ${CONDA_BUILD_OPTIONS} ossim
conda build ${CONDA_BUILD_OPTIONS} shark
conda build ${CONDA_BUILD_OPTIONS} tinyxml
conda build ${CONDA_BUILD_OPTIONS} libitk
conda build ${CONDA_BUILD_OPTIONS} otb
conda config --set anaconda_upload yes
anaconda login --username ${ANACONDA_LOGIN} --password ${ANACONDA_PASSWORD} --hostname ${CI_JOB_ID}
conda build --user ${ANACONDA_ORGANIZATION} ${CONDA_BUILD_OPTIONS} muparserx
conda build --user ${ANACONDA_ORGANIZATION} ${CONDA_BUILD_OPTIONS} openthreads
conda build --user ${ANACONDA_ORGANIZATION} ${CONDA_BUILD_OPTIONS} ossim
conda build --user ${ANACONDA_ORGANIZATION} ${CONDA_BUILD_OPTIONS} shark
conda build --user ${ANACONDA_ORGANIZATION} ${CONDA_BUILD_OPTIONS} tinyxml
conda build --user ${ANACONDA_ORGANIZATION} ${CONDA_BUILD_OPTIONS} libitk
conda build --user ${ANACONDA_ORGANIZATION} ${CONDA_BUILD_OPTIONS} otb
mkdir ${CI_PROJECT_DIR}/conda-bld
mv /build/anaconda3/conda-bld/linux-64/*.tar.bz2 ${CI_PROJECT_DIR}/conda-bld
#!/usr/bin/env bash
#
# Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
#
# This file is part of Orfeo Toolbox
#
# https://www.orfeo-toolbox.org/
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This script aims to identify the unreferenced authors to invite the team to
# check if they have already signed the contributor license agreement (CLA).
# When this is done, the author must be added to the reference list.
source /build/anaconda3/bin/activate
ANACONDA_ORGANIZATION="orfeotoolbox"
anaconda login --username ${ANACONDA_LOGIN} --password ${ANACONDA_PASSWORD} --hostname ${CI_JOB_ID}
anaconda upload --user ${ANACONDA_ORGANIZATION} conda-bld/*.tar.bz2
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment