Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PFE] Starting CI #41

Open
junaruga opened this issue Apr 15, 2018 · 0 comments
Open

[PFE] Starting CI #41

junaruga opened this issue Apr 15, 2018 · 0 comments

Comments

@junaruga
Copy link
Member

junaruga commented Apr 15, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant