Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
lscsoft
gracedb-client
Commits
1940aa4e
Commit
1940aa4e
authored
Aug 06, 2020
by
Alexander Pace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating build/test CI on master
parent
9576fc83
Pipeline
#145844
failed with stages
in 3 minutes and 3 seconds
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
903 additions
and
4 deletions
+903
-4
.gitlab-ci.yml
.gitlab-ci.yml
+43
-4
scripts/ligo-proxy-init
scripts/ligo-proxy-init
+860
-0
No files found.
.gitlab-ci.yml
View file @
1940aa4e
stages
:
-
build
-
test
-
integration
# -- build ------------------
.build
:
&build
...
...
@@ -63,14 +64,13 @@ build:el7:
-
popd
-
rm -rf dist/ligo-gracedb*
build:debian:jessie:
<<
:
*build_debian
image
:
debian:jessie
build:debian:stretch:
<<
:
*build_debian
image
:
debian:stretch
build:debian:buster:
<<
:
*build_debian
image
:
debian:buster
# -- test -------------------
.test
:
&test
...
...
@@ -95,6 +95,45 @@ test:python3.7:
<<
:
*test
image
:
python:3.7
# -- test -------------------
.integration
:
&integration_test
stage
:
integration
image
:
python
variables
:
TEST_SERVICE
:
https://gracedb-test.ligo.org/api/
before_script
:
# source: https://wiki.ligo.org/AuthProject/LIGOCILOGONRobotCertificate
-
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
-
apt-get update && apt-get install -y curl krb5-user xsltproc
-
echo "${ROBOT_KEYTAB}" | base64 -d | install -m 0600 /dev/stdin keytab
-
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"
# Do not run jobs simultaneously to avoid concurrent superevent
# creation. Staggering with when/start_in worked marginally. This
# was inspired by:
# https://about.gitlab.com/blog/2020/01/21/introducing-resource-groups/
# and gracedb_sdk's pipeline.
resource_group
:
integration-test
integration:python2.7:
<<
:
*integration_test
image
:
python:2.7
integration:python3.5:
<<
:
*integration_test
image
:
python:3.5
integration:python3.6:
<<
:
*integration_test
image
:
python:3.6
integration:python3.7:
<<
:
*integration_test
image
:
python:3.7
# -- docs -------------------
# Although we don't host the docs on Gitlab Pages,
# we still want to check that they build properly.
...
...
scripts/ligo-proxy-init
0 → 100644
View file @
1940aa4e
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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