Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/peaceiris/hugo-theme-iris.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShohei Ueda <30958501+peaceiris@users.noreply.github.com>2020-01-31 01:41:12 +0300
committerGitHub <noreply@github.com>2020-01-31 01:41:12 +0300
commita0570a6a399fcf8d76e8be9d48723065a5ace1e3 (patch)
tree3e7ac2e38022c213f8ce86205e91a35c397d6331 /Makefile
parentaf8291e7ca20d2a6c42a1d83b08ff3e6e2744794 (diff)
ci: Add test workflow (#98)
Close #96 * ci: Add test workflow * ci: add test-docker job * ci: Add Lighthouse workflow
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d9f8e9d6..d3560315 100644
--- a/Makefile
+++ b/Makefile
@@ -17,3 +17,13 @@ hugo:
data:
curl 'https://api.github.com/users/peaceiris/repos?per_page=100&page=1' > ./data/github/peaceiris.json
# curl 'https://api.github.com/users/hugojapan/repos?per_page=100&page=1' > ./data/github/hugojapan.json
+
+.PHONY: build
+build:
+ $(eval opt := --gc --minify --themesDir ../ --layoutDir ../layouts --baseURL https://hugothemeiris.peaceiris.app/)
+ $(DOCKER_COMPOSE) run --rm hugo $(opt)
+
+.PHONY: buildgha
+buildgha:
+ cd ./exampleSite && \
+ hugo --gc --minify --themesDir ../ --layoutDir ../layouts --baseURL https://hugothemeiris.peaceiris.app/