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-core
Wellbore-client-storage
Commits
33480672
Commit
33480672
authored
Mar 05, 2021
by
Luc Yriarte
Browse files
Merge branch 'deploy_dev' into 'master'
Development packages support See merge request
!5
parents
010cf57e
48892f1d
Pipeline
#35534
passed with stage
in 25 seconds
Changes
1
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
33480672
...
...
@@ -13,8 +13,10 @@ stages:
build
:
stage
:
test
script
:
-
echo ---- ---- ---- BUILD IMAGE ---- ---- ----
-
pip3 install -r requirements.txt
-
pip3 install -r requirements_dev.txt
-
echo ---- ---- ---- UNIT TESTS ---- ---- ----
-
pytest test --junitxml=report.xml
artifacts
:
when
:
always
...
...
@@ -25,9 +27,30 @@ build:
deploylib
:
stage
:
deploy
script
:
-
echo ---- ---- ---- BUILD IMAGE ---- ---- ----
-
pip3 install -r requirements.txt
-
pip3 install twine
-
python3 setup.py sdist bdist_wheel
-
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
:
-
pip3 install -r requirements.txt
-
echo ---- ---- ---- SET DEVELOPMENT VERSION ---- ---- ----
-
PACKAGE_VERSION_FILE='setup.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/^VERSION[ ]*\=[ ]*\"${PACKAGE_LIB_VERSION}\"/VERSION = \"${PACKAGE_DEV_VERSION}\"/" ${PACKAGE_VERSION_FILE}
-
echo ---- ---- ---- BUILD IMAGE ---- ---- ----
-
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
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