Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-07-12 11:57:25 +02:00
Родитель 1140f9ed4e
Коммит f60246c017
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7076EA9751AACDDA
2 изменённых файлов: 39 добавлений и 0 удалений

Просмотреть файл

@ -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:

34
check-vuejs-builds.sh Executable file
Просмотреть файл

@ -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"