travis: add an osbuild test
Actually test the tools. This simply runs a noop stage followed by a noop assembler. Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
659ce42c83
commit
fa7a5b985e
3 changed files with 27 additions and 0 deletions
|
|
@ -2,9 +2,13 @@ dist: bionic
|
||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- "3.7"
|
- "3.7"
|
||||||
|
before_install:
|
||||||
|
- sudo apt-get install -y systemd-container
|
||||||
install:
|
install:
|
||||||
- pip install pylint
|
- pip install pylint
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- name: pylint
|
- name: pylint
|
||||||
script: pylint osbuild osbuild-run assemblers/* stages/*
|
script: pylint osbuild osbuild-run assemblers/* stages/*
|
||||||
|
- name: pipeline-noop
|
||||||
|
script: sudo env "PATH=$PATH" python3 -m osbuild --libdir . --output . samples/noop.json
|
||||||
|
|
|
||||||
12
assemblers/org.osbuild.noop
Executable file
12
assemblers/org.osbuild.noop
Executable file
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
import json
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def main(_tree, _output_dir, options):
|
||||||
|
print("Not doing anything with these options:", json.dumps(options))
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
args = json.load(sys.stdin)
|
||||||
|
r = main(args["tree"], args["output_dir"], args.get("options", {}))
|
||||||
|
sys.exit(r)
|
||||||
11
samples/noop.json
Normal file
11
samples/noop.json
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"name": "noop",
|
||||||
|
"stages": [
|
||||||
|
{
|
||||||
|
"name": "org.osbuild.noop"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"assembler": {
|
||||||
|
"name": "org.osbuild.noop"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue