From 4f13430a95b872f95cbd38bed4ee39d0d11abecf Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma <roeland@famdouma.nl> Date: Fri, 28 Sep 2018 21:03:43 +0200 Subject: [PATCH] Add drone step Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> --- .drone.yml | 9 +++++++++ build/compile-handlebars-templates.sh | 4 ++++ 2 files changed, 13 insertions(+) mode change 100644 => 100755 build/compile-handlebars-templates.sh diff --git a/.drone.yml b/.drone.yml index 5228d4e6562..0e87b974696 100644 --- a/.drone.yml +++ b/.drone.yml @@ -57,6 +57,14 @@ pipeline: when: matrix: TESTS: checkers + handlebars: + image: node + commands: + - npm install handlebars -g + - ./build/compile-handlebars-templates.sh + when: + matrix: + TESTS: handlebars syntax-php7.0: image: nextcloudci/php7.0:php7.0-19 commands: @@ -774,6 +782,7 @@ matrix: - TESTS: vue-build-oauth2 - TESTS: vue-build-accessibility - TESTS: vue-build-backupcodes + - TESTS: handlebars - TESTS: nodb-codecov ENABLE_REDIS: true - TESTS: db-codecov diff --git a/build/compile-handlebars-templates.sh b/build/compile-handlebars-templates.sh old mode 100644 new mode 100755 index 1775f45b0fe..80e2e661f4d --- a/build/compile-handlebars-templates.sh +++ b/build/compile-handlebars-templates.sh @@ -15,7 +15,11 @@ handlebars -n OCA.Files.FileSummary.Templates apps/files/js/filesummary.handleba if [[ $(git diff --name-only) ]]; then echo "Please submit your compiled handlebars templates" + echo + git diff exit 1 fi + +echo "All up to date! Carry on :D" exit 0 -- GitLab