Add x264 test script

This commit is contained in:
BtbN
2020-09-02 00:07:54 +02:00
parent dd5ed8066e
commit cbb86a4d0e
4 changed files with 74 additions and 0 deletions

View File

@ -0,0 +1,36 @@
#!/bin/bash
set -e
cd "$(dirname "$0")"
rm -f Dockerfile
if [[ $# -lt 1 || $# -gt 2 ]]; then
echo "Invalid Arguments"
exit -1
fi
TARGET="$1"
VARIANT="${2:-gpl}"
REPO="${GITHUB_REPOSITORY:-btbn/ffmpeg-builds}"
to_df() {
printf "$@" >> Dockerfile
echo >> Dockerfile
}
REPO="${REPO,,}"
to_df "FROM $REPO/base-$TARGET:latest"
to_df "ENV TARGET $TARGET"
to_df "ENV VARIANT $VARIANT"
to_df "ENV REPO $REPO"
to_df "ENV FFPREFIX /opt/ffbuild"
for script in scripts.d/*.sh; do
(
SELF="$script"
source $script
ffbuild_relevant || exit 0
ffbuild_dockerstage || exit $?
)
done