Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-06-06 19:02:43 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-06-07 09:35:02 +0300
commit62e29abc5b2919870b7474bd2b3e732eacc4287a (patch)
tree7c6006b008391398a95ced0fd992f146975aeefc /build/vue-builds.sh
parent4618f17654248d9057b1f06f589d9486d21823e7 (diff)
Add vue apps build tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'build/vue-builds.sh')
-rwxr-xr-xbuild/vue-builds.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/build/vue-builds.sh b/build/vue-builds.sh
new file mode 100755
index 00000000000..39331e92270
--- /dev/null
+++ b/build/vue-builds.sh
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+declare -a apps=("./settings/js/main.js" "./apps/updatenotification/js/merged.js")
+root=$(pwd)
+
+for i in "${apps[@]}"
+do
+ entryFile=$i
+ backupFile="$entryFile.orig"
+ path=$(dirname "$entryFile")
+
+ # Backup original file
+ echo "Backing up $entryFile to $backupFile"
+ cp $entryFile $backupFile
+
+ # Make the app
+ cd "$path/../"
+ make
+
+ # Reset
+ cd $root
+
+ # Compare build files
+ echo "Comparing $entryFile to the original"
+ if ! diff -q $entryFile $backupFile &>/dev/null
+ then
+ echo "$entryFile build is NOT up-to-date! Please send the proper production build within the pull request"
+ cat /root/.npm/_logs/*.log
+ exit 2
+ else
+ echo "$entryFile build is up-to-date"
+ fi
+done