From a5ae5786047017ebc7e34d41e7f173cccfc123db Mon Sep 17 00:00:00 2001 From: Leratier Bretonnien Date: Thu, 21 May 2020 20:24:13 +0000 Subject: [PATCH] Add .gitlab-ci.yml --- .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 00000000..338e244f --- /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 'module.json' > /dev/null + +build: + stage: build + script: + - zip foundryvtt-reve-de-dragon.zip -r *.js *.json *.md module styles templates -x ".*" + artifacts: + name: foundryvtt-reve-de-dragon + when: on_success + paths: + - foundryvtt-reve-de-dragon.zip + when: on_success + only: + - tags + - master