File: ci.sh

package info (click to toggle)
ttconv 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,460 kB
  • sloc: python: 19,811; sh: 44; makefile: 7
file content (13 lines) | stat: -rwxr-xr-x 421 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# Exit immediately if unit tests exit with a non-zero status.
set -e

## Linter

pipenv run python -m pylint --exit-zero src/main/python/ttconv/ src/test/python/

## unit test and coverage

pipenv run coverage run -m unittest discover -v -s src/test/python/ -t .
pipenv run coverage report | awk '!/-|(Name)/ {if (int($NF) < 80) {print $1 " has less than 80% coverage"; flag=2;}}; END { if (flag) exit(flag)}'