Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Wellbore
Lib
Wellbore-cloud
Wellbore-gcp-lib
Commits
ff3ae39f
Commit
ff3ae39f
authored
Mar 05, 2021
by
Luc Yriarte
Browse files
Merge branch 'deploy_dev' into 'master'
Development packages support See merge request
!6
parents
4f3d9d8f
e2d6a2f2
Pipeline
#38452
failed with stages
in 46 seconds
Changes
2
Pipelines
7
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
ff3ae39f
...
...
@@ -13,9 +13,6 @@ stages:
build
:
stage
:
test
script
:
-
echo ---- ---- ---- SYSTEM DEPENDENCIES ---- ---- ----
-
apt update
-
apt install -y --no-install-recommends git
-
echo ---- ---- ---- BUILD IMAGE ---- ---- ----
-
pip3 install -r requirements.txt
-
pip3 install -r requirements_opengroup.txt
...
...
@@ -31,9 +28,6 @@ build:
deploylib
:
stage
:
deploy
script
:
-
echo ---- ---- ---- SYSTEM DEPENDENCIES ---- ---- ----
-
apt update
-
apt install -y --no-install-recommends git
-
echo ---- ---- ---- BUILD IMAGE ---- ---- ----
-
pip3 install -r requirements.txt
-
pip3 install -r requirements_opengroup.txt
...
...
@@ -42,3 +36,24 @@ deploylib:
-
TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=${CI_REGISTRY_USER} python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${WDMS_LIB_REGISTRY}/packages/pypi dist/*
rules
:
-
if
:
$CI_COMMIT_BRANCH == 'master'
# Pushes merge request builds to the feed
deploydev
:
stage
:
deploy
script
:
-
echo ---- ---- ---- SET DEVELOPMENT VERSION ---- ---- ----
-
PACKAGE_VERSION_FILE='osdu_gcp/__init__.py'
-
PACKAGE_NAME=$(python setup.py --name)
-
PACKAGE_LIB_VERSION=$(python setup.py --version)
-
PACKAGE_DEV_VERSION=${PACKAGE_LIB_VERSION}.dev${CI_JOB_ID}
-
sed -i "s/${PACKAGE_LIB_VERSION}/${PACKAGE_DEV_VERSION}/g" ${PACKAGE_VERSION_FILE}
-
echo ---- ---- ---- BUILD IMAGE ---- ---- ----
-
pip3 install -r requirements.txt
-
pip3 install -r requirements_opengroup.txt
-
pip3 install twine
-
python3 setup.py sdist bdist_wheel
-
echo ---- ---- ---- PUSHING DEVELOPMENT PACKAGE ${PACKAGE_DEV_VERSION} TO PROJECT ${WDMS_LIB_REGISTRY} REGISTRY ---- ---- ----
-
TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=${CI_REGISTRY_USER} python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${WDMS_LIB_REGISTRY}/packages/pypi dist/*
only
:
-
merge_requests
requirements_opengroup.txt
View file @
ff3ae39f
git+https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/wellbore/lib/wellbore-core/wellbore-core-lib.git@slb-code-push#egg=osdu-core-lib-python
# osdu core lib main python
--extra-index-url \
https://community.opengroup.org/api/v4/projects/465/packages/pypi/simple/
osdu-core-lib-python>=0.4.0, <0.5
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment