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:
script:
- pacman -Syu --needed --noconfirm yarn ruby-sass make git
- make
- make dist
after_script:
- echo "dist_size_bytes $(make distsize) " > metrics.txt
artifacts:
reports:
metrics: metrics.txt
dotenv: build.env
include:
- template: Dependency-Scanning.gitlab-ci.yml
......@@ -53,6 +53,10 @@ submodule:
git submodule update --init --recursive
make -C .external/archlinux-common-style
.PHONY:
distsize:
@du -s "dist/${PACKAGE_NAME}-${VERSION}"
.PHONY:
clean:
$(YARN) cache clean
......
Markdown is supported
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