Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
FAIR Data Austria DB Repository
DBRepo
Commits
757dcbcf
Verified
Commit
757dcbcf
authored
7 months ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Wrong path
parent
da167de4
No related branches found
No related tags found
2 merge requests
!345
Updated docs and endpoints:
,
!341
Fixed mapping problem where UK and FK share columns they are inserted
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab/gen-badge.sh
+4
-4
4 additions, 4 deletions
.gitlab/gen-badge.sh
with
4 additions
and
4 deletions
.gitlab/gen-badge.sh
+
4
−
4
View file @
757dcbcf
#!/bin/bash
#!/bin/bash
GITLAB_URL
=
"https://gitlab.phaidra.org"
GITLAB_URL
=
"https://gitlab.phaidra.org"
# if we reached this script, all the tests have passed
# if we reached this script, all the tests have passed
anybadge
--label
pipeline
--value
"passed"
failed
=
red
passed
=
green
canceled
=
darkgray
>
"./final/
${
APP
_VERSION
}
/images/pipeline.svg"
anybadge
--label
pipeline
--value
"passed"
failed
=
red
passed
=
green
canceled
=
darkgray
>
"./final/
${
DOC
_VERSION
}
/images/pipeline.svg"
PIPELINE_COVERAGE
=
$(
curl
-fsSL
-H
"PRIVATE-TOKEN:
${
CI_TOKEN
}
"
"
${
GITLAB_URL
}
/api/v4/projects/450/pipelines/latest?ref=
${
CI_COMMIT_BRANCH
}
"
| jq
--raw-output
.coverage
)
PIPELINE_COVERAGE
=
$(
curl
-fsSL
-H
"PRIVATE-TOKEN:
${
CI_TOKEN
}
"
"
${
GITLAB_URL
}
/api/v4/projects/450/pipelines/latest?ref=
${
CI_COMMIT_BRANCH
}
"
| jq
--raw-output
.coverage
)
echo
"[INFO] pipeline coverage:
${
PIPELINE_COVERAGE
}
"
echo
"[INFO] pipeline coverage:
${
PIPELINE_COVERAGE
}
"
if
[
"
${
PIPELINE_COVERAGE
}
"
!=
"null"
]
;
then
if
[
"
${
PIPELINE_COVERAGE
}
"
!=
"null"
]
;
then
anybadge
--label
coverage
--value
"
${
PIPELINE_COVERAGE
}
"
coverage
>
"./final/
${
APP
_VERSION
}
/images/coverage.svg"
anybadge
--label
coverage
--value
"
${
PIPELINE_COVERAGE
}
"
coverage
>
"./final/
${
DOC
_VERSION
}
/images/coverage.svg"
else
else
echo
"[WARNING] Skipping badge generation, displaying default badge text: unknown"
echo
"[WARNING] Skipping badge generation, displaying default badge text: unknown"
fi
fi
curl
"
${
SONARQUBE_URL
}
/api/project_badges/measure?project=fair-data-austria-db-repository_fda-services_a57fa043-ab99-4cdd-a721-162d9a916d77&metric=sqale_rating&token=
${
CI_SONAR_TOKEN
}
"
>
"./final/
${
APP
_VERSION
}
/images/maintainability.svg"
curl
"
${
SONARQUBE_URL
}
/api/project_badges/measure?project=fair-data-austria-db-repository_fda-services_a57fa043-ab99-4cdd-a721-162d9a916d77&metric=sqale_rating&token=
${
CI_SONAR_TOKEN
}
"
>
"./final/
${
DOC
_VERSION
}
/images/maintainability.svg"
curl
"
${
SONARQUBE_URL
}
/api/project_badges/measure?project=fair-data-austria-db-repository_fda-services_a57fa043-ab99-4cdd-a721-162d9a916d77&metric=security_rating&token=
${
CI_SONAR_TOKEN
}
"
>
"./final/
${
APP
_VERSION
}
/images/security.svg"
curl
"
${
SONARQUBE_URL
}
/api/project_badges/measure?project=fair-data-austria-db-repository_fda-services_a57fa043-ab99-4cdd-a721-162d9a916d77&metric=security_rating&token=
${
CI_SONAR_TOKEN
}
"
>
"./final/
${
DOC
_VERSION
}
/images/security.svg"
echo
"[INFO] retrieved SonarQube badges"
echo
"[INFO] retrieved SonarQube badges"
\ No newline at end of file
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