Commit 3de3c24a authored by Yan Sushchynski (EPAM)'s avatar Yan Sushchynski (EPAM)
Browse files

GONRG-3783: Common pipeline for osdu-*

parent e8e913fd
Pipeline #82376 passed with stages
in 1 minute and 11 seconds
default:
image: python:3.6-slim-buster
variables:
OSDU_API_LIBS_DIR: $CI_BUILDS_DIR
CLOUD_PROVIDER: provider_test
BUILD_TAG: $CI_COMMIT_TAG
BUILD_COMMIT_SHORT_SHA: $CI_COMMIT_SHORT_SHA
BUILD_ID: $CI_PIPELINE_IID
include:
- project: "osdu/platform/ci-cd-pipelines"
ref: "master"
file: "build/python-package.yml"
stages:
- test
......@@ -14,19 +9,15 @@ stages:
test-providers-gcp:
stage: test
image: python:3.6-slim-buster
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:
publish-package:
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
variables:
LIB_NAME: osdu_api
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment