Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Méso-NH code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
Méso-NH
Méso-NH code
Commits
7c3b2cbf
Commit
7c3b2cbf
authored
1 year ago
by
RIETTE Sébastien
Browse files
Options
Downloads
Patches
Plain Diff
S. Riette 20 Dec 2023: host name choice for github status
parent
388569bc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/testing.sh
+8
-2
8 additions, 2 deletions
tools/testing.sh
with
8 additions
and
2 deletions
tools/testing.sh
+
8
−
2
View file @
7c3b2cbf
...
@@ -7,7 +7,8 @@ set -o pipefail #abort if left command on a pipe fails
...
@@ -7,7 +7,8 @@ set -o pipefail #abort if left command on a pipe fails
function
usage
{
function
usage
{
echo
"Usage:
$0
[-h] [--repo-user USER] [--repo-protocol PROTOCOL] [--repo-repo REPO] [--no-update] [--no-compil]"
echo
"Usage:
$0
[-h] [--repo-user USER] [--repo-protocol PROTOCOL] [--repo-repo REPO] [--no-update] [--no-compil]"
echo
" [--no-exec] [--no-comp] [--no-remove] [--force] [--commit SHA] [--ref REF]"
echo
" [--no-exec] [--no-comp] [--no-remove] [--force] [--commit SHA] [--ref REF]"
echo
" [--only-model MODEL] [--no-enable-gh-pages] [--perf PERF] [--no-doc-gen] [MAIL]"
echo
" [--only-model MODEL] [--no-enable-gh-pages] [--perf PERF] [--no-doc-gen]"
echo
" [--hostname HOSTNAME] [MAIL]"
echo
"--repo-user USER"
echo
"--repo-user USER"
echo
" user hosting the PHYEX repository on github,"
echo
" user hosting the PHYEX repository on github,"
echo
" defaults to the env variable PHYEXREPOuser (=
$PHYEXREPOuser
)"
echo
" defaults to the env variable PHYEXREPOuser (=
$PHYEXREPOuser
)"
...
@@ -30,6 +31,9 @@ function usage {
...
@@ -30,6 +31,9 @@ function usage {
echo
" dont't try to enable the project pages on github"
echo
" dont't try to enable the project pages on github"
echo
"--perf FILE add performance statistics in file FILE"
echo
"--perf FILE add performance statistics in file FILE"
echo
"--no-doc-gen do not test the documentation generation"
echo
"--no-doc-gen do not test the documentation generation"
echo
"--hostname HOSTNAME"
echo
" the context is built using the provided hostname instead of the real hostname"
echo
" This can be usefull when running on a cluster node which can vary from run to run"
echo
"MAIL comma-separated list of e-mail addresses (no spaces); if not provided, mail is not sent"
echo
"MAIL comma-separated list of e-mail addresses (no spaces); if not provided, mail is not sent"
echo
""
echo
""
echo
"This script provides functionality for automated tests."
echo
"This script provides functionality for automated tests."
...
@@ -67,6 +71,7 @@ models=""
...
@@ -67,6 +71,7 @@ models=""
enableghpages
=
1
enableghpages
=
1
perfopt
=
""
perfopt
=
""
docgen
=
1
docgen
=
1
contextHostname
=
${
HOSTNAME
}
allargs
=
"
$@
"
allargs
=
"
$@
"
while
[
-n
"
$1
"
]
;
do
while
[
-n
"
$1
"
]
;
do
...
@@ -87,6 +92,7 @@ while [ -n "$1" ]; do
...
@@ -87,6 +92,7 @@ while [ -n "$1" ]; do
'--no-enable-gh-pages'
)
enableghpages
=
0
;;
'--no-enable-gh-pages'
)
enableghpages
=
0
;;
'--perf'
)
perfopt
=
"--perf
$2
"
;
shift
;;
'--perf'
)
perfopt
=
"--perf
$2
"
;
shift
;;
'--no-doc-gen'
)
docgen
=
0
;;
'--no-doc-gen'
)
docgen
=
0
;;
'--hostname'
)
contextHostname
=
$2
;
shift
;;
#--) shift; break ;;
#--) shift; break ;;
*
)
if
[
-z
"
${
MAIL
-
}
"
]
;
then
*
)
if
[
-z
"
${
MAIL
-
}
"
]
;
then
MAIL
=
"
$1
"
MAIL
=
"
$1
"
...
@@ -109,7 +115,7 @@ fi
...
@@ -109,7 +115,7 @@ fi
exec
>
"
${
logfile
}
"
2>&1
exec
>
"
${
logfile
}
"
2>&1
#context for statuses
#context for statuses
context
=
"continuous-integration/
${
HOSTNAME
}
"
context
=
"continuous-integration/
${
contextHostname
}
"
#Interactions with github
#Interactions with github
if
[
"
${
PHYEXREPOprotocol
}
"
==
'ssh'
]
;
then
if
[
"
${
PHYEXREPOprotocol
}
"
==
'ssh'
]
;
then
...
...
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