#!/bin/sh

set -e

run() {
  echo "Running “$@”"
  $@
}

cd $AUTOPKGTEST_TMP
run django-admin startproject testproject
cd testproject
run django-admin startapp testapp

# Now test that pylint-django works on those
run pylint3 --version
run pylint3 -E --load-plugins=pylint_django testapp/
