зеркало из https://github.com/nextcloud/spreed.git
Check VueJS builds as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
1140f9ed4e
Коммит
f60246c017
|
@ -7,6 +7,11 @@ steps:
|
|||
commands:
|
||||
- make npm-init
|
||||
- ./check-simplewebrtc-bundle.sh
|
||||
- name: check-vuejs-builds
|
||||
image: node:lts
|
||||
commands:
|
||||
- make npm-init
|
||||
- ./check-vuejs-builds.sh
|
||||
- name: check-handlebars-templates
|
||||
image: node:lts
|
||||
commands:
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
#!/bin/bash
|
||||
|
||||
entryFiles=(
|
||||
"collections"
|
||||
"collectionsintegration"
|
||||
"admin/allowed-groups"
|
||||
"admin/commands"
|
||||
"admin/signaling-server"
|
||||
"admin/stun-server"
|
||||
"admin/turn-server"
|
||||
)
|
||||
|
||||
for entryFile in "${entryFiles[@]}"
|
||||
do
|
||||
cp "js/$entryFile.js" "js/$entryFile.back"
|
||||
done
|
||||
|
||||
# Make the app
|
||||
set -e
|
||||
make build-js-production
|
||||
|
||||
for entryFile in "${entryFiles[@]}"
|
||||
do
|
||||
echo "Comparing $entryFile to the original"
|
||||
if ! diff -q "js/$entryFile.js" "js/$entryFile.back" &>/dev/null
|
||||
then
|
||||
echo "$entryFile.js build is NOT up-to-date! Please send the proper production build within the pull request"
|
||||
diff "js/$entryFile.js" "js/$entryFile.back"
|
||||
exit 2
|
||||
fi
|
||||
rm "js/$entryFile.back"
|
||||
done
|
||||
|
||||
echo "Vue.JS builds are up-to-date"
|
Загрузка…
Ссылка в новой задаче