diff options
author | Gary Kim <gary@garykim.dev> | 2019-11-16 22:15:07 +0800 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-11-16 14:15:07 +0000 |
commit | 9feab2940598343cb28350063e1f9d781208552b (patch) | |
tree | 27485b50744a16bf46929f08e683a1aca2008913 | |
parent | 4f9443cf8ecc590834abb4863a11a36481de0fa9 (diff) | |
download | gitea-9feab2940598343cb28350063e1f9d781208552b.tar.gz gitea-9feab2940598343cb28350063e1f9d781208552b.zip |
Check compiled files during build (#9042)
Signed-off-by: Gary Kim <gary@garykim.dev>
-rw-r--r-- | .drone.yml | 1 | ||||
-rw-r--r-- | Makefile | 7 |
2 files changed, 1 insertions, 7 deletions
diff --git a/.drone.yml b/.drone.yml index 1cddc80d40..222523d015 100644 --- a/.drone.yml +++ b/.drone.yml @@ -60,6 +60,7 @@ steps: commands: - make css - make js + - bash -c '[ -z "$(git status --porcelain public/js public/css)" ] || (echo "Generated js/css files do not match" && git status --porcelain public/js public/css && exit 1)' - name: build-without-gcc pull: always @@ -444,13 +444,6 @@ css: npm $(foreach file, $(filter-out web_src/less/themes/_base.less, $(wildcard web_src/less/themes/*)),npx lessc --clean-css="--s0 -b" web_src/less/themes/$(notdir $(file)) > public/css/theme-$(notdir $(call strip-suffix,$(file))).css;) npx postcss --use autoprefixer --no-map --replace public/css/* - @diff=$$(git diff public/css/*); \ - if ([ -n "$$CI" ] && [ -n "$$diff" ]); then \ - echo "Generated files in public/css have changed, please commit the result:"; \ - echo "$${diff}"; \ - exit 1; \ - fi; - .PHONY: javascripts javascripts: echo "'make javascripts' is deprecated, please use 'make js'" |