test xfce projects with xfce-build:latest container
The snippet can be accessed without any authentication.
Authored by
Jason Yavorska
Edited
test.sh 556 B
#!/bin/bash
docker pull xfce/xfce-build:latest
for f in *; do
if [ -d ${f} ]; then
echo handling $f
cd $f
[ -e ../$f.log ] && rm ../$f.log
git pull
docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) --volume $(pwd):/tmp xfce/xfce-build:master /bin/bash -c "cd /tmp; ./autogen.sh && make distcheck" >../$f.log 2>&1
cd ..
fi
done
for f in *; do
if [ -d ${f} ]; then
echo -e "\n\nshowing $f\n========================================================"
tail -15 $f.log
fi
done