File: build.sh

package info (click to toggle)
python-osmapi 1.2.2-3
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 648 kB
  • sloc: python: 2,894; xml: 1,577; sh: 10; makefile: 8
file content (22 lines) | stat: -rwxr-xr-x 383 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

set -e

function cleanup {
    exit $?
}

trap "cleanup" EXIT

# Check PEP-8 code style and McCabe complexity
flake8 --statistics --show-source .

# run tests
nosetests --verbose --with-coverage

# generate the docs
pdoc --html --overwrite osmapi/OsmApi.py

# setup a new virtualenv and try to install the lib
virtualenv pyenv
source pyenv/bin/activate && pip install .