Explorar el Código

Add CI step to verify merged vendor js

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v12.0.0beta1
Roeland Jago Douma hace 7 años
padre
commit
588f47d498
No account linked to committer's email address
Se han modificado 2 ficheros con 33 adiciones y 0 borrados
  1. 8
    0
      .drone.yml
  2. 25
    0
      build/mergejschecker.sh

+ 8
- 0
.drone.yml Ver fichero

when: when:
matrix: matrix:
TESTS: check-autoloader TESTS: check-autoloader
check-mergejs:
image: nextcloudci/php7.0:php7.0-7
commands:
- bash ./build/mergejschecker.sh
when:
matrix:
TESTS: check-mergejs
app-check-code: app-check-code:
image: nextcloudci/php7.0:php7.0-7 image: nextcloudci/php7.0:php7.0-7
commands: commands:
- TESTS: integration-ldap-features - TESTS: integration-ldap-features
- TESTS: jsunit - TESTS: jsunit
- TESTS: check-autoloader - TESTS: check-autoloader
- TESTS: check-mergejs
- TESTS: app-check-code - TESTS: app-check-code
- TESTS: syntax-php5.6 - TESTS: syntax-php5.6
- TESTS: syntax-php7.0 - TESTS: syntax-php7.0

+ 25
- 0
build/mergejschecker.sh Ver fichero

#!/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

Cargando…
Cancelar
Guardar