Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
csp-lmc-subelement-old
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab 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
Gianluca Marotta
csp-lmc-subelement-old
Commits
b28afb68
Commit
b28afb68
authored
5 years ago
by
Elisabetta Giani
Browse files
Options
Downloads
Patches
Plain Diff
publish_python_package: publish the python package under nexus repo.
parent
732b22a0
No related branches found
No related tags found
1 merge request
!6
Publish python package
Pipeline
#11423
failed
5 years ago
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+36
-2
36 additions, 2 deletions
.gitlab-ci.yml
tests/test_se_master.py
+0
-3
0 additions, 3 deletions
tests/test_se_master.py
tests/test_se_subarray.py
+0
-2
0 additions, 2 deletions
tests/test_se_subarray.py
with
36 additions
and
7 deletions
.gitlab-ci.yml
+
36
−
2
View file @
b28afb68
...
...
@@ -16,7 +16,9 @@ before_script:
stages
:
-
test
-
linting
-
deploy
-
build
-
publish
-
pages
# The YAML file defines a set of jobs with constraints stating when they should be run.
# You can specify an unlimited number of jobs which are defined as top-level elements with an arbitrary name and always
...
...
@@ -66,8 +68,40 @@ linting:
paths
:
-
./build
build_dev_package
:
stage
:
build
tags
:
-
docker-executor
script
:
-
python3 setup.py egg_info -b+dev.$CI_COMMIT_SHORT_SHA sdist bdist_wheel
artifacts
:
path
:
-
./dist
build_package
:
stage
:
build
tags
:
-
docker-executor
script
:
-
python setup.py egg_info -b.$CI_COMMIT_SHORT_SHA sdist bdist_wheel
only
:
[
master
]
artifacts
:
path
:
-
./dist
publish
:
stage
:
publish
tags
:
-
docker-executor
variables
:
TWINE_USERNAME
:
$TWINE_USERNAME
TWINE_PASSWORD
:
$TWINE_PASSWORD
script
:
-
pip3 install twine
-
twine upload --repository-url $PYPI_REPOSITORY_URL dist/*
pages
:
stage
:
deploy
stage
:
pages
tags
:
-
docker-executor
dependencies
:
...
...
This diff is collapsed.
Click to expand it.
tests/test_se_master.py
+
0
−
3
View file @
b28afb68
...
...
@@ -155,7 +155,6 @@ class TestCspSubElementMaster(object):
# reinitialize the device to return to
# adminMode =ONLINE and State=INIT
tango_context
.
device
.
Init
()
time
.
sleep
(
2
)
assert
tango_context
.
device
.
adminMode
==
AdminMode
.
ONLINE
assert
tango_context
.
device
.
State
()
==
DevState
.
INIT
with
pytest
.
raises
(
DevFailed
)
as
df
:
...
...
@@ -257,8 +256,6 @@ class TestCspSubElementMaster(object):
tango_context
.
device
.
onCmdDurationExpected
=
20
tango_context
.
device
.
offCmdDurationExpected
=
20
tango_context
.
device
.
standbyCmdDurationExpected
=
20
# wait to let the polling thread update the attrs value
time
.
sleep
(
3
)
assert
tango_context
.
device
.
onCmdDurationExpected
==
20
assert
tango_context
.
device
.
offCmdDurationExpected
==
20
assert
tango_context
.
device
.
standbyCmdDurationExpected
==
20
...
...
This diff is collapsed.
Click to expand it.
tests/test_se_subarray.py
+
0
−
2
View file @
b28afb68
...
...
@@ -190,8 +190,6 @@ class TestCspSubElementSubarray(object):
def
test_set_command_duration_expected
(
self
,
tango_context
):
"""
Test xxxCmdDurationExpected attributes
"""
tango_context
.
device
.
goToIdleDurationExpected
=
20
# wait to let the polling thread update the attrs value
time
.
sleep
(
3
)
assert
tango_context
.
device
.
goToIdleDurationExpected
==
20
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