Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ska-logging
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
LOFAR2.0
ska-logging
Commits
fe5d415d
Unverified
Commit
fe5d415d
authored
3 years ago
by
Katleho Madisa
Browse files
Options
Downloads
Patches
Plain Diff
test
parent
9cc633cc
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+4
-32
4 additions, 32 deletions
.gitlab-ci.yml
tests/test_configuration.py
+1
-1
1 addition, 1 deletion
tests/test_configuration.py
with
5 additions
and
33 deletions
.gitlab-ci.yml
+
4
−
32
View file @
fe5d415d
...
@@ -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
This diff is collapsed.
Click to expand it.
tests/test_configuration.py
+
1
−
1
View file @
fe5d415d
...
@@ -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
...
...
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