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

Add a command to generate a .travis.yml from user supplied parameters #59

Open
agrare opened this issue Mar 12, 2020 · 2 comments
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@agrare
Copy link
Member

agrare commented Mar 12, 2020

Creating a .travis.yml file to run cross_repo tests is not user friendly. To simplify the process of creating a pull request on cross_repo-tests we can have a helper script that will build up a .travis.yml file which will run the tests properly.

This can include some user-friendly "buckets" for common use-cases like "test all providers" and "test UI and API".

Possible interface:

# Bucket for all providers
manageiq-cross_repo generate-travis-yml --repos=manageiq#1234,manageiq-schema#5678 --test=@all_providers

# Bucket for UI and API
manageiq-cross_repo generate-travis-yml --repos=manageiq#1234,manageiq-schema#5678 --test=@ui_and_api

# Manually specify the repos to test
manageiq-cross_repo generate-travis-yml --repos=manageiq#1234,manageiq-schema#5678 --test=manageiq-providers-amazon,manageiq-smartstate

# Mix buckets and specific repos
manageiq-cross_repo generate-travis-yml --repos=manageiq#1234,manageiq-schema#5678 --test=@all_providers,manageiq-smartstate

The output of this will be a .travis.yml file which can be committed to manageiq-cross_repo-tests so that a pull request can run the requested tests.

Eventually this can be used by miq-bot to enable this to be called by users from github comments. The interface/bucket-name here should match what is expected to be exposed by miq-bot.

@agrare agrare added enhancement New feature or request help wanted Extra attention is needed labels Mar 12, 2020
@Fryguy
Copy link
Member

Fryguy commented Mar 12, 2020

Probably can steal some of this from ManageIQ/miq_bot#454

@cben
Copy link

cben commented Mar 12, 2020

If the interface is to be used in @miq-bot sentences, better avoid @ character in bucket names?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants