#!/bin/sh

set -e

export EDITOR=true

for py in $(py3versions -s 2>/dev/null)
do
    echo "Testing with $py:"
    mkdir /tmp/lesana_collection
    cd /tmp/lesana_collection
    $py $(which lesana) init && $py $(which lesana) new
    cd -
    rm -r /tmp/lesana_collection
done
