#!/bin/sh -e
# SPDX-FileCopyrightText: Chris Pressey, the original author of this work, has dedicated it to the public domain.
# For more information, please refer to <https://unlicense.org/>
# SPDX-License-Identifier: Unlicense
if command -v flake8 > /dev/null; then
echo "flake8 --ignore=E501 src"
flake8 --ignore=E501 src
else
echo "flake8 not found, skipping check"
fi
if command -v reuse > /dev/null; then
echo "reuse lint --quiet"
reuse lint --quiet || reuse lint
else
echo "reuse not found, skipping check"
fi
if command -v ffmpeg > /dev/null; then
if command -v rsvg-convert > /dev/null; then
bin/kinoje eg/squares.yaml
ls -la squares.mp4
file squares.mp4
rm -f squares.mp4
else
echo "rsvg-convert not found, skipping e2e test"
fi
else
echo "ffmpeg not found, skipping e2e test"
fi