File: update-coverage.sh

package info (click to toggle)
node-esprima-fb 15001.1001.0-dev-harmony-fb-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 5,596 kB
  • ctags: 3,442
  • sloc: python: 125; sh: 11; makefile: 2
file content (14 lines) | stat: -rwxr-xr-x 380 bytes parent folder | download | duplicates (4)
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/esprima/esprima.js.html | grep -v "class='meta" > test/esprima.js.html

else
    echo "Please install Istanbul first!"
fi