Blame tests/test.json

rpm-build c487f7
{
rpm-build c487f7
    "app-id": "org.test.Hello2",
rpm-build c487f7
    "runtime": "org.test.Platform",
rpm-build c487f7
    "sdk": "org.test.Sdk",
rpm-build c487f7
    "command": "hello2.sh",
rpm-build c487f7
    "tags": ["test"],
rpm-build c487f7
    "finish-args": [
rpm-build c487f7
        "--share=network"
rpm-build c487f7
    ],
rpm-build c487f7
    "build-options" : {
rpm-build c487f7
        "cflags": "-O2 -g",
rpm-build c487f7
        "cxxflags": "-O2 -g",
rpm-build c487f7
        "env": {
rpm-build c487f7
            "FOO": "bar",
rpm-build c487f7
            "V": "1"
rpm-build c487f7
        }
rpm-build c487f7
    },
rpm-build c487f7
    "cleanup": ["/cleanup", "*.cleanup"],
rpm-build c487f7
    "cleanup-commands": [ "touch /app/cleaned_up" ],
rpm-build c487f7
    "modules": [
rpm-build c487f7
        "include1/module1.json",
rpm-build c487f7
        {
rpm-build c487f7
            "name": "root",
rpm-build c487f7
            "modules": [
rpm-build c487f7
                {
rpm-build c487f7
                    "name": "test",
rpm-build c487f7
                    "config-opts": ["--some-arg"],
rpm-build c487f7
                    "post-install": [ "touch /app/bin/file.cleanup", "mkdir -p /app/share/icons/", "cp org.test.Hello.png /app/share/icons/" ],
rpm-build c487f7
                    "make-args": ["BAR=2" ],
rpm-build c487f7
                    "make-install-args": ["BAR=3" ],
rpm-build c487f7
                    "build-commands": [ "echo foo > /app/out" ],
rpm-build c487f7
                    "sources": [
rpm-build c487f7
                        {
rpm-build c487f7
                            "type": "file",
rpm-build c487f7
                            "path": "test-configure",
rpm-build c487f7
                            "dest-filename": "configure",
rpm-build c487f7
                            "sha256": "675a1ac2feec4d4f54e581b4b01bc3cfd2c1cf31aa5963574d31228c8a11b7e7"
rpm-build c487f7
                        },
rpm-build c487f7
                        {
rpm-build c487f7
                            "type": "file",
rpm-build c487f7
                            "path": "app-data"
rpm-build c487f7
                        },
rpm-build c487f7
                        {
rpm-build c487f7
                            "type": "script",
rpm-build c487f7
                            "dest-filename": "hello2.sh",
rpm-build c487f7
                            "commands": [ "echo \"Hello world2, from a sandbox\"" ]
rpm-build c487f7
                        },
rpm-build c487f7
                        {
rpm-build c487f7
                            "type": "shell",
rpm-build c487f7
                            "commands": [
rpm-build c487f7
                                "mkdir /app/cleanup/",
rpm-build c487f7
                                "touch /app/cleanup/a_file"
rpm-build c487f7
                            ]
rpm-build c487f7
                        },
rpm-build c487f7
                        {
rpm-build c487f7
                            "type": "patch",
rpm-build c487f7
                            "path": "0001-Add-test-logo.patch",
rpm-build c487f7
                            "use-git": true
rpm-build c487f7
                        }
rpm-build c487f7
                    ]
rpm-build c487f7
                },
rpm-build c487f7
                {
rpm-build c487f7
                    "name": "test2",
rpm-build c487f7
                    "build-commands": [ "echo foo2 > /app/out2" ],
rpm-build c487f7
                    "buildsystem": "simple",
rpm-build c487f7
                    "sources": [
rpm-build c487f7
                        {
rpm-build c487f7
                            "type": "file",
rpm-build c487f7
                            "path": "app-data"
rpm-build c487f7
                        }
rpm-build c487f7
                    ]
rpm-build c487f7
                },
rpm-build c487f7
                {
rpm-build c487f7
                    "name": "empty"
rpm-build c487f7
                }
rpm-build c487f7
            ]
rpm-build c487f7
        }
rpm-build c487f7
    ]
rpm-build c487f7
}