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
59a030b1
Commit
59a030b1
authored
Jan 21, 2021
by
Luc Yriarte
Browse files
Restore gitlab CI
parent
230c14bc
Pipeline
#22478
failed with stage
in 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
59a030b1
default
:
image
:
python:3.7-slim-buster
stages
:
-
test
-
deploy
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
-
pip3 install -r requirements_dev.txt
-
pytest tests --junitxml=report.xml
artifacts
:
when
:
always
reports
:
junit
:
report.xml
# This job only runs on master, and it creates the lib and push it to the feed
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
-
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/${CI_PROJECT_ID}/packages/pypi dist/*
rules
:
-
if
:
$CI_COMMIT_BRANCH == 'master'
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