Verified Commit d569d645 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Add metric for measuring the website size

Show the increase of website size in merge requests.
parent b9b58a37
Pipeline #2635 passed with stage
in 37 seconds
...@@ -4,7 +4,13 @@ dist: ...@@ -4,7 +4,13 @@ dist:
script: script:
- pacman -Syu --needed --noconfirm yarn ruby-sass make git - pacman -Syu --needed --noconfirm yarn ruby-sass make git
- make - make
- make dist
after_script:
- echo "dist_size_bytes $(make distsize) " > metrics.txt
artifacts:
reports:
metrics: metrics.txt
dotenv: build.env
include: include:
- template: Dependency-Scanning.gitlab-ci.yml - template: Dependency-Scanning.gitlab-ci.yml
...@@ -53,6 +53,10 @@ submodule: ...@@ -53,6 +53,10 @@ submodule:
git submodule update --init --recursive git submodule update --init --recursive
make -C .external/archlinux-common-style make -C .external/archlinux-common-style
.PHONY:
distsize:
@du -s "dist/${PACKAGE_NAME}-${VERSION}"
.PHONY: .PHONY:
clean: clean:
$(YARN) cache clean $(YARN) cache clean
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment