File: run-tests

package info (click to toggle)
fdroidserver 2.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,948 kB
  • sloc: python: 34,139; xml: 2,186; sh: 1,362; java: 293; makefile: 54; javascript: 23
file content (27 lines) | stat: -rwxr-xr-x 654 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

set -e # quit script on error

echo_header() {
    { echo -e "==============================================================================\n$1"; } 2>/dev/null
}

#------------------------------------------------------------------------------#

if [ ! -d tests ]; then
    cd ..
fi

set -x # show each command as it is executed

#------------------------------------------------------------------------------#
echo_header "run commit hooks"

test -x ./hooks/pre-commit && ./hooks/pre-commit

#------------------------------------------------------------------------------#
echo_header "run unit tests"

python3 -m unittest -v

echo SUCCESS