Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
conda
manifest-rules
Commits
e8ad4617
Commit
e8ad4617
authored
Jul 30, 2021
by
Paul McCarthy
🚵
Browse files
BF: Syntax. Basic manifest ci rules validation
parent
863a1736
Changes
3
Hide whitespace changes
Inline
Side-by-side
.ci/check_manifest_gitlab_ci_yml.py
0 → 100644
View file @
e8ad4617
#!/usr/bin/env python
import
yaml
with
open
(
'manifest-gitlab-ci.yml'
,
'rt'
)
as
f
:
print
(
yaml
.
load
(
f
.
read
(),
Loader
=
yaml
.
Loader
))
.gitlab-ci.yml
View file @
e8ad4617
...
...
@@ -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
...
...
manifest_rules/test_manifest.py
View file @
e8ad4617
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment