Skip to content

[PFE] Starting CI #41

@junaruga

Description

@junaruga

Propose for enhancement.

I want to add Travis CI test for this repository .

As first step, only to verify the all the existing recipe files's style format.

The CI can be on Travis CI + Fedora Docker + rpm-list-builder.
The entire concept is something like below picture.

for recipe in recipe_file_list in the repository:
  for collection_id in the recipe's collection_ids:
    verify command by rpm-list-builder.

As a first way, I tried blow command that I expected that is kind of verify command to only run Recipe#verify. But it needed for the directory to be created.

(venv) $ rpmlb --build dummy ror.yml rh-ror50
...
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/rpmlb-k8dixpt_/001/rh-ror50'

But below command works.

(venv) $ python3 -c 'from rpmlb import recipe
> r = recipe.Recipe("ror.yml", "rh-ror50")
> print(r.verify())
> '
True

This time we can use this logic.
In the future the logic can be run by rpmlb --verify RECIPE_FILE COLLECTION_ID

How do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions