diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-04-10 16:04:07 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-04-10 16:04:07 +0200 |
| commit | e70a719c638509087539b3ba0dba0b61d65519ca (patch) | |
| tree | 692baebeac1191d189ac5da93b9ded042bc88b85 | |
First
| -rw-r--r-- | .gitignore | 1 | ||||
| -rwxr-xr-x | content/css/main.css | 21 | ||||
| -rwxr-xr-x | content/index.html | 37 | ||||
| -rwxr-xr-x | scripts/jellyfin-covreport.sh | 9 |
4 files changed, 68 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5d8dc4b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +content/jellyfin diff --git a/content/css/main.css b/content/css/main.css new file mode 100755 index 0000000..5236e3f --- /dev/null +++ b/content/css/main.css @@ -0,0 +1,21 @@ +html { + font-family: Hack, monospace; + color: #eeeeee; + background-color:#1e1e1e; + line-height: 1.6; +} +main { + max-width: 70ch; + padding: 2ch; + margin: auto; +} +h1::before { + content: '# '; +} +h2::before { + content: '## '; +} +a { + color: #569cd6; + text-decoration: none; +} diff --git a/content/index.html b/content/index.html new file mode 100755 index 0000000..bb43d3f --- /dev/null +++ b/content/index.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <title>Bond_009 Coverage Lab</title> + + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1"> + + <meta property="og:title" content="Bond_009 Coverage Lab" /> + <meta property="og:type" content="website" /> + <meta property="og:url" content="https://cov.b0n.dev/" /> + + <link rel="stylesheet" type="text/css" href="css/main.css" /> + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/hack-font@3/build/web/hack-subset.css" /> +</head> + +<body> + <main> + <article> + <h1>Bond_009 Coverage Lab</h1> + + <section> + <ul> + <li> + <h3><a href="jellyfin">Jellyfin</a></h3> + <img src="jellyfin/badge_linecoverage.svg" > + <br> + <img src="jellyfin/badge_branchcoverage.svg" > + </li> + </ul> + </section> + </article> + </main> +</body> + +</html> diff --git a/scripts/jellyfin-covreport.sh b/scripts/jellyfin-covreport.sh new file mode 100755 index 0000000..351772d --- /dev/null +++ b/scripts/jellyfin-covreport.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +cd "$1" + +find . -type d -name 'TestResults' -exec rm -r {} + +dotnet test --configuration Release --collect:'XPlat Code Coverage' --settings tests/coverletArgs.runsettings --verbosity minimal +reportgenerator "-title:Jellyfin" "-reporttypes:Html;Badges;JsonSummary" "-reports:tests/**/coverage.cobertura.xml" "-targetdir:$2" "-historydir:$3" "-verbosity:Warning" |
