Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
3e2350be
Commit
3e2350be
authored
Mar 12, 2019
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
POC on collecting metrics in ci process
parent
51c06a8c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
scripts/circle-metrics.sh
+16
-0
scripts/circle-test-frontend.sh
+1
-0
No files found.
scripts/circle-metrics.sh
0 → 100755
View file @
3e2350be
#!/bin/bash
ERROR_COUNT
=
"
$(
./node_modules/.bin/tsc
--project
tsconfig.json
--noEmit
--noImplicitAny
true
|
grep
-oP
'Found \K(\d+)'
)
"
DIRECTIVES
=
"
$(
grep
-r
-o
directive public/app/
**
/
*
| wc
-l
)
"
CONTROLLERS
=
"
${
grep
-r -oP \
"class .*Ctrl
\"
public/app/**/* | wc -l}"
echo
"Typescript errors:
$ERROR_COUNT
"
echo
"Directives:
$DIRECTIVES
"
echo
"Controllers:
$CONTROLLERS
"
curl \
-d
"{
\"
metrics
\"
:{
\"
noImplicitAny
\"
:
$ERROR_COUNT
}}"
\
-H
"Content-Type: application/json"
\
-u ci
:
$CIRCLE_STATS
\
-X POST https
://stats.grafana.org/metric-receiver
scripts/circle-test-frontend.sh
View file @
3e2350be
...
@@ -10,5 +10,6 @@ function exit_if_fail {
...
@@ -10,5 +10,6 @@ function exit_if_fail {
fi
fi
}
}
exit_if_fail ./circle-metrics.sh
exit_if_fail npm run prettier:check
exit_if_fail npm run prettier:check
exit_if_fail npm run
test
exit_if_fail npm run
test
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