paper-cutter/test/run_tests.sh
Filip Gralinski 67c788fe69 Init from an internal repo.
Commit d5b6f8e831fc5c933af5ceb1267f51ef6af6c438
2020-11-24 08:33:07 +01:00

30 lines
721 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
PAPER_ID=lorem-ipsum
PAPER_DIR="${PAPER_ID}-paper"
check()
{
config_file="$1"
echo "========================================================================================="
echo "*** TESTING $config_file"
echo "========================================================================================="
rm -rf "$PAPER_DIR"
cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --config-file "$config_file" --no-input --checkout master
cd "$PAPER_DIR"
make clean
make
if [[ "$config_file" != "configs/pw-thesis.yml" ]]
then
make arxiv-$PAPER_ID.tar.gz
fi
cd ..
}
for config in configs/*.yml
do
check $config
done