Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Duncan Macleod
gracedb-client
Commits
c4cbbd65
Unverified
Commit
c4cbbd65
authored
Sep 26, 2022
by
Duncan Macleod
Browse files
ci: attempt to add coverage for integration tests
parent
e37d7ef6
Pipeline
#458389
failed with stages
in 34 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
c4cbbd65
...
...
@@ -158,16 +158,14 @@ deb:bullseye:
# -- test with pip
.test
:
extends
:
# https://computing.docs.ligo.org/gitlab-ci-templates/python/#.python:pytest
-
.python:pytest
# https://computing.docs.ligo.org/gitlab-ci-templates/python/#.python:pytest
extends
:
.python:pytest
stage
:
test
needs
:
[]
image
:
python
variables
:
COVERAGE_TARGET
:
"
ligo.gracedb"
PYTHON
:
"
python3"
script
:
-
python3 setup.py test --addopts "--cov ligo.gracedb --junitxml=junit.xml"
# upload .coverage files to be aggregated later
artifacts
:
when
:
always
...
...
@@ -288,10 +286,13 @@ test:bullseye:
.integration
:
extends
:
-
.
python:
test
-
.test
stage
:
integration
needs
:
[]
image
:
python
variables
:
# only run the integration tests
PYTEST_OPTIONS
:
"
-m
integration"
before_script
:
# source: https://wiki.ligo.org/AuthProject/LIGOCILOGONRobotCertificate
-
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
...
...
@@ -300,8 +301,6 @@ test:bullseye:
-
ROBOT_PRINCIPAL=$(klist -k keytab | head -n 4 | tail -n 1 | sed -E 's/^.* +//')
-
kinit $ROBOT_PRINCIPAL -k -t keytab
-
./scripts/ligo-proxy-init -k
script
:
-
python setup.py test --addopts "-m integration --cov ligo.gracedb"
# only run on the lscsoft repo that has the credentials
only
:
-
branches@computing/gracedb/client
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment