#!/usr/bin/env bash

set -e

echo "Running flake8 formatter check..."
flake8 snowflake_etl tests

# run pytest with args set
echo 'Running tests...'

PYTHONDONTWRITEBYTECODE=1 COVERAGE_FILE=build/.coverage py.test tests/ \
  -p no:cacheprovider \
  --cov snowflake_etl \
  --cov-report xml:build/coverage.xml \
  --cov-report term \
  --junitxml=build/pyunit.xml
