summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-05 23:09:00 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-05 23:09:00 +0300
commit4d9068e67bcb9c2030c47a8b17a32f7e4a1ff6b3 (patch)
tree6e04ebe7a4c3e2a566374dfce17ba96bb59d4bcb
parent9854f434fd8e4894c3071e8f7dc5f77bc728f047 (diff)
downloadplus-4d9068e67bcb9c2030c47a8b17a32f7e4a1ff6b3.tar.gz
plus-4d9068e67bcb9c2030c47a8b17a32f7e4a1ff6b3.tar.bz2
plus-4d9068e67bcb9c2030c47a8b17a32f7e4a1ff6b3.tar.xz
plus-4d9068e67bcb9c2030c47a8b17a32f7e4a1ff6b3.zip
Add into ci scripts pngcheck.
-rw-r--r--.gitlab-ci.yml8
-rwxr-xr-xtools/ci/jobs/pngcheck.sh22
2 files changed, 30 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b489c19a7..5f34b6e3e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -66,6 +66,14 @@ gcc-5_h_all:
tags:
- docker
+pngcheck:
+ stage: prebuild
+ script:
+ - ./tools/ci/jobs/pngcheck.sh
+ image: debian:unstable
+ tags:
+ - docker
+
# simple builds
gcc-4.4:
diff --git a/tools/ci/jobs/pngcheck.sh b/tools/ci/jobs/pngcheck.sh
new file mode 100755
index 000000000..8a44e1f41
--- /dev/null
+++ b/tools/ci/jobs/pngcheck.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+source ./tools/ci/scripts/init.sh
+
+aptget_install pngcheck
+
+export LOG1="pngcheck.log"
+export LOG2="pngcheck2.log"
+
+rm ${LOG1}
+rm ${LOG2}
+
+find data -type f -name "*.png" -exec pngcheck {} \; >${LOG1}
+
+grep -v "32-bit RGB+alpha, non-interlaced, " ${LOG1} >${LOG2}
+export DATA=$(cat pngcheck2.log)
+if [[ -n "${DATA}" ]]; then
+ echo "Images must be in 32 bit RGBA and non-interlanced"
+ echo "Wrong images format found:"
+ cat ${LOG2}
+ exit 1
+fi