Commit 968510c3 authored by Michael Baudino's avatar Michael Baudino Committed by OyyoDams

chore(ci) validate es_input.cfg syntax

This commit adds a CI stage named `lint` which contains a job that
validates `es_input.cfg` syntax against its RelaxNG format definition.
parent b2d6febb
image: docker:latest
stages:
- lint
- build
- release
- clean
......@@ -11,6 +12,16 @@ variables:
REVIEW_STACK_NAME: archive-review
IMAGE: recalbox/archive
# Lint
lint es_input:
stage: lint
script:
- apk add --update --no-cache libxml2-utils
- xmllint --noout --relaxng board/recalbox/fsoverlay/recalbox/scripts/es_input.rng board/recalbox/fsoverlay/recalbox/share_init/system/.emulationstation/es_input.cfg
# Build
.build_template: &build_definition
stage: build
script:
......@@ -148,6 +159,7 @@ build odroidxu4 for test:
ARCH: 'odroidxu4'
### Release
.release_template: &release_definition
stage: release
variables:
......@@ -190,6 +202,8 @@ release review:
url: https://recalbox-reviews.s3.nl-ams.scw.cloud/${CI_ENVIRONMENT_SLUG}/index.html
on_stop: clean review
### Clean
clean review:
image: registry.gitlab.com/recalbox/ops/rancher-cli:0.6.2
stage: clean
......
......@@ -28,6 +28,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Bump np2kai core
- Fix lutro zipped games unzipping in the .lutro folder
- Support archive: switch to transfer.sh Temp File Hosting
- Add a CI stage for linting
## [6.0] - DragonBlaze
- Change name from 5.0 to 6.0 DragonBlaze
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment