File: update-coverage.sh

package info (click to toggle)
node-espree 3.5.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 248 kB
  • sloc: sh: 11; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 377 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

if [ `command -v istanbul` ]; then

    REVISION=`git log -1 --pretty=%h`
    DATE=`git log -1 --pretty=%cD | cut -c 6-16`

    echo "Running coverage analysis..."
    istanbul cover test/runner.js
    grep -v 'class="path' coverage/lcov-report/espree/espree.js.html | grep -v "class='meta" > test/espree.js.html

else
    echo "Please install Istanbul first!"
fi