From e6f1fc8e0212f709dd553012332cc50d97233980 Mon Sep 17 00:00:00 2001 From: Leratier Bretonnien Date: Thu, 1 Oct 2020 21:25:30 +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 0000000..c8dfeb9 --- /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 'fr.json' > /dev/null + - python -mjson.tool 'module.json' > /dev/null + +build: + stage: build + script: + - zip wfrp4e-unofficial-grimoire.zip -r *.js *.json *.md compendium lang tables -x ".*" + artifacts: + name: wfrp4e-unofficial-grimoire + when: on_success + paths: + - wfrp4e-unofficial-grimoire.zip + when: on_success + only: + - tags + - master