File: test_python_package.sh

package info (click to toggle)
python-precis-i18n 1.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,836 kB
  • sloc: python: 1,825; sh: 28; makefile: 3
file content (18 lines) | stat: -rwxr-xr-x 294 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
#
# Build source package and test it.

set -e

if [ "$TRAVIS_PYTHON_VERSION" = "pypy3" ]; then
    echo "Skip test of source package on pypy."
    exit 0
fi

python setup.py sdist
cd dist
tar xfz precis_i18n-*.tar.gz
GLOBIGNORE='*.tar.gz'
cd precis_i18n-*
python -m unittest
exit 0