mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* Fix the process service coverage path and config * Create a index report page and run the liteserver
19 lines
493 B
Bash
Executable File
19 lines
493 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ROOT=./lib/coverage
|
|
HTTP="/"
|
|
OUTPUT="./lib/coverage/index.html"
|
|
RULE=".*\.\(html\)"
|
|
|
|
echo "<h1>Coverage ADF Reports</h1>" > $OUTPUT
|
|
echo "<ul>" >> $OUTPUT
|
|
i=0
|
|
for filepath in `find "$ROOT" -maxdepth 1 -mindepth 1 -type d| sort`; do
|
|
path=`basename "$filepath"`
|
|
for i in `find "$filepath" -regex "$RULE" -maxdepth 1 -mindepth 1 -type f| sort`; do
|
|
file=`basename "$i"`
|
|
echo " <li><a href=\"/$path/$file\">$path</a></li>" >> $OUTPUT
|
|
done
|
|
done
|
|
echo "</ul>" >> $OUTPUT
|