File: test.sh

package info (click to toggle)
usagestats 0.5-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 172 kB
  • ctags: 73
  • sloc: python: 555; sh: 60; makefile: 17
file content (16 lines) | stat: -rwxr-xr-x 302 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -eux

case "$TEST_MODE"
in
    run_tests)
        python tests
        ;;
    coverage)
        coverage run --append --source=usagestats.py --branch tests/__main__.py
        ;;
    check_style)
        flake8 --ignore=E126 usagestats.py tests wsgi/usagestats_server.py
        ;;
esac