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
System
SDKs
Python SDK
Commits
a3ee9035
Commit
a3ee9035
authored
Jul 12, 2021
by
vladislav
Committed by
Siarhei Khaletski (EPAM)
Jul 14, 2021
Browse files
Add gcp CI
parent
ee8e313a
Pipeline
#52135
passed with stages
in 2 minutes and 11 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
a3ee9035
default
:
image
:
python:3.6-slim-buster
variables
:
OSDU_API_LIBS_DIR
:
$CI_BUILDS_DIR
CLOUD_PROVIDER
:
provider_test
stages
:
-
test
-
deploy
test-libs
:
stage
:
test
script
:
-
pip install -r requirements.txt
-
pip install -r requirements-dev.txt
-
python -m pytest ./osdu_api/test/libs-unit-tests
test-providers-gcp
:
stage
:
test
script
:
-
pip install -r requirements.txt
-
pip install -r requirements-dev.txt
-
pip install -r ./osdu_api/test/providers-unit-tests/gcp/requirements.txt
-
python -m pytest ./osdu_api/test/providers-unit-tests/gcp
# This job only runs on master, and it creates the lib and push it to the feed
deploy
:
stage
:
deploy
script
:
-
pip install -r requirements.txt
-
pip install twine
-
python setup.py sdist bdist_wheel
-
TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
when
:
manual
Write
Preview
Supports
Markdown
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