#!/bin/bash
set -e

QUILT_PATCHES="debian/patches" quilt push -a || true

for py in $(py3versions -s 2> /dev/null)
do echo "Testing with $py in $(pwd):"
    pytest-3 -v deeptools --ignore=.pc
done

QUILT_PATCHES=debian/patches quilt pop -a || true
rm -rf .pc/
