Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Osman
otb
Commits
890111f2
Commit
890111f2
authored
5 years ago
by
Guillaume Pernot
Browse files
Options
Downloads
Patches
Plain Diff
Splitted conda-build and conda-deploy
parent
d8b94a92
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+25
-6
25 additions, 6 deletions
.gitlab-ci.yml
CI/conda_build.sh
+9
-11
9 additions, 11 deletions
CI/conda_build.sh
CI/conda_deploy.sh
+30
-0
30 additions, 0 deletions
CI/conda_deploy.sh
with
64 additions
and
17 deletions
.gitlab-ci.yml
+
25
−
6
View file @
890111f2
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
CI/conda_build.sh
+
9
−
11
View file @
890111f2
...
...
@@ -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
This diff is collapsed.
Click to expand it.
CI/conda_deploy.sh
0 → 100755
+
30
−
0
View file @
890111f2
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment