Commit e8ad4617 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: Syntax. Basic manifest ci rules validation

parent 863a1736
#!/usr/bin/env python
import yaml
with open('manifest-gitlab-ci.yml', 'rt') as f:
print(yaml.load(f.read(), Loader=yaml.Loader))
......@@ -33,6 +33,17 @@ test:
- python -c 'import manifest_rules; print(manifest_rules.__version__)'
check-manifest-gitab-ci-yml:
stage: test
image: python:3.9
tags:
- fsl-ci
- docker
script:
- pip install git+https://git.fmrib.ox.ac.uk/fsl/fsl-ci-rules.git
- python ./.ci/check_manifest_gitlab_ci_yml.py
check-version:
stage: check-version
image: python:3.9
......
......@@ -29,7 +29,7 @@ def main():
# patch the manifest to refer to local environment files
for build in manifest['versions'][version]:
envfname = build['environment']).split('//')[-1]
envfname = build['environment'].split('//')[-1]
build['environment'] = op.join(environment_dir, envfname)
with open(manifest_file, 'wt') as f:
......
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