Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
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
TeDomum
Matrix
Commits
c037170f
Commit
c037170f
authored
9 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Split up jenkins tests
parent
7678ec3f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
jenkins-flake8.sh
+20
-0
20 additions, 0 deletions
jenkins-flake8.sh
jenkins-unittests.sh
+23
-0
23 additions, 0 deletions
jenkins-unittests.sh
with
43 additions
and
0 deletions
jenkins-flake8.sh
0 → 100755
+
20
−
0
View file @
c037170f
#!/bin/bash -eu
:
${
WORKSPACE
:
=
"
$(
pwd
)
"
}
export
PYTHONDONTWRITEBYTECODE
=
yep
export
SYNAPSE_CACHE_FACTOR
=
1
# Output test results as junit xml
export
TRIAL_FLAGS
=
"--reporter=subunit"
export
TOXSUFFIX
=
"| subunit-1to2 | subunit2junitxml --no-passthrough --output-to=results.xml"
# Write coverage reports to a separate file for each process
export
COVERAGE_OPTS
=
"-p"
export
DUMP_COVERAGE_COMMAND
=
"coverage help"
# Output flake8 violations to violations.flake8.log
export
PEP8SUFFIX
=
"--output-file=violations.flake8.log"
rm
.coverage
*
||
echo
"No coverage files to remove"
tox
-e
packaging
-e
pep8
This diff is collapsed.
Click to expand it.
jenkins-unittests.sh
0 → 100755
+
23
−
0
View file @
c037170f
#!/bin/bash -eu
:
${
WORKSPACE
:
=
"
$(
pwd
)
"
}
export
PYTHONDONTWRITEBYTECODE
=
yep
export
SYNAPSE_CACHE_FACTOR
=
1
# Output test results as junit xml
export
TRIAL_FLAGS
=
"--reporter=subunit"
export
TOXSUFFIX
=
"| subunit-1to2 | subunit2junitxml --no-passthrough --output-to=results.xml"
# Write coverage reports to a separate file for each process
export
COVERAGE_OPTS
=
"-p"
export
DUMP_COVERAGE_COMMAND
=
"coverage help"
# Output flake8 violations to violations.flake8.log
# Don't exit with non-0 status code on Jenkins,
# so that the build steps continue and a later step can decided whether to
# UNSTABLE or FAILURE this build.
export
PEP8SUFFIX
=
"--output-file=violations.flake8.log || echo flake8 finished with status code
\$
?"
rm
.coverage
*
||
echo
"No coverage files to remove"
tox
-e
py27
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