Project

Profile

Help

Task #6150

Updated by mdepaulo@redhat.com about 4 years ago

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.

Back