Skip to content
Snippets Groups Projects
Unverified Commit fe5d415d authored by Katleho Madisa's avatar Katleho Madisa
Browse files

test

parent 9cc633cc
No related branches found
No related tags found
No related merge requests found
...@@ -24,16 +24,6 @@ stages: ...@@ -24,16 +24,6 @@ stages:
# You can specify an unlimited number of jobs which are defined as top-level elements with an arbitrary name and always # You can specify an unlimited number of jobs which are defined as top-level elements with an arbitrary name and always
# have to contain at least the script clause. # have to contain at least the script clause.
build wheel:
stage: build
tags:
- k8srunner
script:
- python3 setup.py sdist bdist_wheel
artifacts:
paths:
- ./dist/
# The test job produces a coverage report and the unittest output (see setup.cfg), and # The test job produces a coverage report and the unittest output (see setup.cfg), and
# the coverage xml report is moved to the reports directory while the html output is persisted for use by the pages # the coverage xml report is moved to the reports directory while the html output is persisted for use by the pages
# job. TODO: possibly a candidate for refactor / renaming later on. # job. TODO: possibly a candidate for refactor / renaming later on.
...@@ -76,28 +66,6 @@ linting: ...@@ -76,28 +66,6 @@ linting:
paths: paths:
- ./build - ./build
publish to nexus:
stage: publish
tags:
- k8srunner
variables:
TWINE_USERNAME: $TWINE_USERNAME
TWINE_PASSWORD: $TWINE_PASSWORD
script:
# Note: katversion will include the git hash in the version for non-tagged commits, but need git
# Check metadata requirements
- scripts/validate-metadata.sh
- python3 -m pip install twine
- twine upload --repository-url $PYPI_REPOSITORY_URL dist/*
only:
refs:
- tags
variables:
# Confirm tag message exists
- $CI_COMMIT_MESSAGE =~ /^.+$/
# Confirm semantic versioning of tag
- $CI_COMMIT_TAG =~ /^((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)$/
pages: pages:
stage: deploy stage: deploy
tags: tags:
...@@ -130,3 +98,7 @@ create ci metrics: ...@@ -130,3 +98,7 @@ create ci metrics:
artifacts: artifacts:
paths: paths:
- ./build - ./build
include:
- project: 'ska-telescope/templates-repository'
file: 'gitlab-ci/includes/build_wheel.yml'
\ No newline at end of file
...@@ -18,7 +18,7 @@ def reset_logging(): ...@@ -18,7 +18,7 @@ def reset_logging():
yield yield
manager = logging.root.manager manager = logging.root.manager
manager.disabled = logging.NOTSET manager.disabled = logging.NOTSET
for logger in list(manager.loggerDict.values()) + [logging.root]: for logger in list(manager.loggerDict.values()) + [logging.root]: # pylint: disable=no-member
if isinstance(logger, logging.Logger): if isinstance(logger, logging.Logger):
logger.setLevel(logging.NOTSET) logger.setLevel(logging.NOTSET)
logger.propagate = True logger.propagate = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment