#!/bin/bash

set -e # everything must pass

envname="${1}"

if [ -z "$envname" ]; then
    echo "Must pass a label for test artifact file e.g. py27"
    exit 1
fi

export PYTHONPATH="src"
pytest \
    --cov=src \
    -n 2 \
    -s \
    --junitxml=build/pytest-$envname.xml \
    src/tests src/integration_tests

coverage report --fail-under=67

#!/bin/bash

set -e # everything must pass

envname="${1}"

if [ -z "$envname" ]; then
    echo "Must pass a label for test artifact file e.g. py27"
    exit 1
fi

export PYTHONPATH="src"
pytest \
    --cov=src \
    -n 4 \
    -s \
    --junitxml=build/pytest-$envname.xml \
    src/tests src/integration_tests

coverage report --fail-under=67

Raise parallelism to 4 processes
Raise parallelism to 4 processes
