Project

Profile

Help

Task #6150

closed

plugin-template needs to let plugins add new Travis services

Added by mdepaulo@redhat.com about 4 years ago. Updated about 4 years ago.

Status:
CLOSED - COMPLETE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
CI/CD, Plugin Template
Sprint:
Quarter:

Description

pulp-2to3-migration had to resort to manually modifying .travis.yml:

services:
  - postgresql
  - redis-server
  - docker
  # This line manually added until the plugin-template makes this configurable.
  - mongodb

Because the services list was non-configurable.

2 ways of doing this:

  1. Make the entire service list a variable. This is more flexible, but makes it more likely to be out-of-date in the future (and thus CI fails) when other parts of the travis template start needing new services.
  2. Create a variable list of services that get appended to the normal list of services. The only downside is that we might have plugin devs might specify service foo, but it later becomes a fixed service, and gets listed 2x. Duplicates might break Travis, but we could also deduplicate it in Python logic.

Also available in: Atom PDF