From 3f8e5a2089cf0c52c2008f04f948c0c39acc028c Mon Sep 17 00:00:00 2001 From: Leratier Bretonnien Date: Sun, 9 Jan 2022 08:46:40 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..7486964 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,29 @@ +image: python:3-alpine + +before_script: + - apk update + - apk add zip + +stages: + - test + - build + +test: + stage: test + script: + - python -mjson.tool 'system.json' > /dev/null + - python -mjson.tool 'template.json' > /dev/null + +build: + stage: build + script: + - zip fvtt-yggdrasill.zip -r *.js *.json *.md module styles templates -x ".*" + artifacts: + name: fvtt-yggdrasill + when: on_success + paths: + - fvtt-yggdrasill.zip + when: on_success + only: + - tags + - master