Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osdu-ingestion-lib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
Data Flow
Data Ingestion
osdu-ingestion-lib
Commits
7d8fe034
Commit
7d8fe034
authored
3 years ago
by
Yan Sushchynski (EPAM)
Browse files
Options
Downloads
Patches
Plain Diff
GONRG-3783: Common pipeline for osdu-*
parent
02b56829
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!9
GONRG-3783 common pipeline for python libs
Pipeline
#83914
passed
3 years ago
Stage: linters
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+18
-34
18 additions, 34 deletions
.gitlab-ci.yml
with
18 additions
and
34 deletions
.gitlab-ci.yml
+
18
−
34
View file @
7d8fe034
default
:
image
:
python:3.6-slim-buster
include
:
-
project
:
"
osdu/platform/ci-cd-pipelines"
ref
:
"
master"
file
:
"
build/python-linters.yml"
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
-
project
:
"
osdu/platform/ci-cd-pipelines"
ref
:
"
master"
file
:
"
build/python-package.yml"
stages
:
-
linters
-
test
-
deploy
pylint
:
stage
:
linters
allow_failure
:
true
script
:
-
python -m pip install setuptools pylint pylint_quotes pylint-exit
-
pip install -r requirements.txt
-
pylint --rcfile=.pylintrc osdu_ingestion/libs || EXIT_CODE=$?
-
exit ${EXIT_CODE}
variables
:
SRC_FILES
:
"
osdu_ingestion/libs"
before_script
:
-
pip install -r requirements-dev.txt
isort
:
allow_failure
:
true
stage
:
linters
script
:
-
python -m pip install setuptools isort
-
isort -c -v osdu_ingestion/libs || EXIT_CODE=$?
-
exit ${EXIT_CODE}
variables
:
SRC_FILES
:
"
osdu_ingestion/libs/*.py"
publish-package
:
variables
:
LIB_NAME
:
osdu_ingestion
test-libs
:
stage
:
test
image
:
python:3.6-slim-buster
script
:
-
pip install -r requirements-dev.txt
-
export CLOUD_PROVIDER=provider_test && export OSDU_API_CONFIG_INI=./osdu_ingestion/tests/libs-unit-tests/osdu_api.ini
-
python -m pytest ./osdu_ingestion/tests/libs-unit-tests
create-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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment