#!/bin/bash

set -e
errors=0

TOP_DIR=`pwd`
cd python

echo `python --version`

# Run unit tests
cd biotool
python biotool_test.py -v || {
    echo "'python biotool_test.py -v' failed"
    let errors+=1
}

cd $TOP_DIR
# Check program style
pylint -E biotool || {
    echo "'pylint -E biotool' failed"
    let errors+=1
}

[ "$errors" -gt 0 ] && {
    echo "There were $errors errors found"
    exit 1
}

echo "Ok : Python specific tests"

#!/bin/bash

set -e
errors=0

TOP_DIR=`pwd`
cd python

echo `python --version`
pip freeze

# Run unit tests
cd biotool
python biotool_test.py -v || {
    echo "'python biotool_test.py -v' failed"
    let errors+=1
}

cd $TOP_DIR
# Check program style
pylint -E biotool || {
    echo "'pylint -E biotool' failed"
    let errors+=1
}

[ "$errors" -gt 0 ] && {
    echo "There were $errors errors found"
    exit 1
}

echo "Ok : Python specific tests"

Add pip freeze to python tests to try to debug test case failure on import of biopython
Add pip freeze to python tests to try to debug test case failure on import of biopython
