mirror of
https://github.com/TREX-CoE/Sherman-Morrison.git
synced 2025-01-13 06:28:35 +01:00
1d1da00931
The vfc_ci tool has been directly added to the repository, since it's not integrated into Verificarlo yet. The vfc_test_h5.cpp file defines a test inspired by test_h5.cpp that reads a list of cycles and dump the vfc_probes for these cycles.
29 lines
755 B
Python
Executable File
29 lines
755 B
Python
Executable File
# Server for the Verificarlo CI report. This is simply a wrapper to avoid
|
|
# calling Bokeh directly.
|
|
|
|
import os
|
|
|
|
def serve(show, git_directory, git_url, port, allow_origin, logo_url):
|
|
|
|
# Prepare arguments
|
|
show = "--show" if show else ""
|
|
|
|
git = ""
|
|
if git_directory != None:
|
|
git = "git directory %s" % git_directory
|
|
if git_url != None:
|
|
git = "git url %s" % git_url
|
|
|
|
logo = ""
|
|
if logo_url != None:
|
|
logo = "logo %s" % logo_url
|
|
|
|
dirname = os.path.dirname(__file__)
|
|
|
|
|
|
# Call the "bokeh serve" command on the system
|
|
command = "bokeh serve %s/vfc_ci_report %s --allow-websocket-origin=%s:%s --port %s --args %s %s" \
|
|
% (dirname, show, allow_origin, port, port, git, logo)
|
|
|
|
os.system(command)
|