31 lines
479 B
YAML
31 lines
479 B
YAML
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
|
|
- python -mjson.tool 'wh4_fr.js' > /dev/null
|
|
|
|
build:
|
|
stage: build
|
|
script:
|
|
- zip wh4-fr-FR.zip -x ".*"
|
|
artifacts:
|
|
name: wh4-fr-FR
|
|
when: on_success
|
|
paths:
|
|
- wh4-fr-FR.zip
|
|
when: on_success
|
|
only:
|
|
- tags
|
|
- master
|