From 588f47d498e78b027fd635ebfaa47876ec8e21b7 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 10 Mar 2017 10:45:27 +0100 Subject: Add CI step to verify merged vendor js Signed-off-by: Roeland Jago Douma --- build/mergejschecker.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 build/mergejschecker.sh (limited to 'build') diff --git a/build/mergejschecker.sh b/build/mergejschecker.sh new file mode 100755 index 00000000000..aee2629956b --- /dev/null +++ b/build/mergejschecker.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +#Regenerate the vendors core.js +echo +echo "Regenerating core/vendor/core.js" + +d=`dirname $(readlink -f $0)` + +php $d/mergejs.php + +files=`git diff --name-only` + +for file in $files +do + if [[ $file == core/vendor/core.js ]] + then + echo "The merged vendor file is not up to date" + echo "Please run: php build/mergejs.php" + echo "And commit the result" + break + fi +done + +echo "Vendor js merged as expected. Carry on" +exit 0 -- cgit v1.2.3