Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lmc-base-classes
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
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
LOFAR2.0
lmc-base-classes
Commits
42ae8266
Commit
42ae8266
authored
Nov 29, 2017
by
Anton Joubert
Browse files
Options
Downloads
Patches
Plain Diff
Testing Jenkinsfile
Add pytest runner and configuration
parent
596f416c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+5
-0
5 additions, 0 deletions
.gitignore
Jenkinsfile
+37
-0
37 additions, 0 deletions
Jenkinsfile
setup.cfg
+3
-0
3 additions, 0 deletions
setup.cfg
setup.py
+10
-3
10 additions, 3 deletions
setup.py
with
55 additions
and
3 deletions
.gitignore
+
5
−
0
View file @
42ae8266
...
...
@@ -2,6 +2,7 @@
# Packages
*.egg
*.eggs
*.egg-info
dist
build
...
...
@@ -24,6 +25,7 @@ pip-log.txt
.tox
.cache
nosetests.xml
results.xml
# Developer tools
*~
...
...
@@ -31,3 +33,6 @@ nosetests.xml
# Ansible
*.retry
# Miscellaneous
.DS_Store
This diff is collapsed.
Click to expand it.
Jenkinsfile
0 → 100644
+
37
−
0
View file @
42ae8266
node
(
'docker'
)
{
withDockerContainer
(
image:
'tango-levpro:latest'
,
args:
'-u root'
)
{
stage
'Cleanup workspace'
sh
'chmod 777 -R .'
sh
'rm -rf *'
stage
'Checkout SCM'
checkout
([
$class
:
'GitSCM'
,
branches:
[[
name:
"refs/heads/${env.BRANCH_NAME}"
]],
extensions:
[[
$class
:
'LocalBranch'
]],
userRemoteConfigs:
scm
.
userRemoteConfigs
,
doGenerateSubmoduleConfigurations:
false
,
submoduleCfg:
[]
])
stage
'Install & Unit Tests'
timestamps
{
timeout
(
time:
30
,
unit:
'MINUTES'
)
{
ansiColor
(
'xterm'
)
{
try
{
sh
'export'
sh
'mount'
sh
'python setup.py test --addopts="--junitxml results.xml"'
}
finally
{
step
([
$class
:
'JUnitResultArchiver'
,
testResults:
'results.xml'
])
}
}
}
}
}
}
This diff is collapsed.
Click to expand it.
setup.cfg
+
3
−
0
View file @
42ae8266
[aliases]
test
=
pytest
[nosetests]
verbosity
=
3
detailed-errors
=
1
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
10
−
3
View file @
42ae8266
...
...
@@ -8,8 +8,14 @@
# WRITTEN PERMISSION OF SKA SA. #
###############################################################################
import
sys
from
setuptools
import
setup
,
find_packages
# prevent unnecessary installation of pytest-runner
needs_pytest
=
{
'
pytest
'
,
'
test
'
,
'
ptr
'
}.
intersection
(
sys
.
argv
)
pytest_runner
=
[
'
pytest-runner
'
]
if
needs_pytest
else
[]
setup
(
name
=
"
levpro
"
,
description
=
"
Element Base Classes - Evolutionary Prototype
"
,
author
=
"
MeerKAT CAM Team
"
,
...
...
@@ -30,17 +36,18 @@ setup(name="levpro",
"
Topic :: Software Development :: Libraries :: Python Modules
"
,
"
Topic :: Scientific/Engineering :: Astronomy
"
],
platforms
=
[
"
OS Independent
"
],
setup_requires
=
[],
setup_requires
=
[]
+
pytest_runner
,
install_requires
=
[
"
enum34
"
,
"
argparse
"
],
tests_require
=
[
"
nose
"
,
"
coverage
"
,
"
nose
"
,
"
nosexcover
"
,
"
pytest
"
,
"
unittest2
"
],
keywords
=
"
elt
lmc ska
"
,
keywords
=
"
levpro
lmc ska
"
,
test_suite
=
"
nose.collector
"
,
zip_safe
=
False
)
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