Add .gitlab-ci.yml

This commit is contained in:
Leratier Bretonnien 2020-10-01 21:25:30 +00:00
parent 03ce2b525d
commit e6f1fc8e02

29
.gitlab-ci.yml Normal file
View File

@ -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