summaryrefslogtreecommitdiff
path: root/tools/ci/jobs/imagemagiccheck.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-06 19:19:19 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-06 19:19:19 +0300
commite84760c24b479ae735cc64e72cd4a42551fba7a8 (patch)
treef4fdfb58ee4f41919fd4bf73f1745f29c4cfaecc /tools/ci/jobs/imagemagiccheck.sh
parentbcdbc39b6efe7391866c81ef82a2e9358b6c3ff4 (diff)
downloadmanaverse-e84760c24b479ae735cc64e72cd4a42551fba7a8.tar.gz
manaverse-e84760c24b479ae735cc64e72cd4a42551fba7a8.tar.bz2
manaverse-e84760c24b479ae735cc64e72cd4a42551fba7a8.tar.xz
manaverse-e84760c24b479ae735cc64e72cd4a42551fba7a8.zip
Add ci test for image icc profiles.
Diffstat (limited to 'tools/ci/jobs/imagemagiccheck.sh')
-rwxr-xr-xtools/ci/jobs/imagemagiccheck.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/ci/jobs/imagemagiccheck.sh b/tools/ci/jobs/imagemagiccheck.sh
new file mode 100755
index 000000000..3d7476868
--- /dev/null
+++ b/tools/ci/jobs/imagemagiccheck.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+source ./tools/ci/scripts/init.sh
+
+aptget_install imagemagick
+
+export LOG="logs/icccheck.log"
+
+mkdir logs
+rm ${LOG}
+
+find $DIR -type f -name "*.png" -exec ./tools/ci/scripts/icccheckfile.sh {} \; >${LOG}
+check_error $?
+
+export RES=$(cat ${LOG})
+if [[ -n "${RES}" ]]; then
+ echo "Detected icc profiles"
+ cat ${LOG}
+ exit 1
+fi