-
Notifications
You must be signed in to change notification settings - Fork 105
Description
From @bittner on May 11, 2018 17:32
(I'm not sure whether I interpret the content of this repo correctly and reporting here is fine. I apologize if this is plain wrong.)
Migrating a project over to PDK we've noticed that the CI configuration generated by PDK (aka "proposed by Puppet Labs") is somewhat verbose. And not based on commands provided by PDK. Examples:
I believe one of the strong points of PDK is that it finally provides developers with easy-to-memorize one-shot commands that "do it all", e.g.
- perform linting:
pdk validate - run (unit) tests:
pdk test unit
Hence, it should be obvious that this simplicity can reflect positively on all any CI configuration related to Puppet. It could look like this:
- install:
- apt-get install pdk
- script:
- pdk validate
- pdk test unit... or, in a more elaborate setup, using stages (e.g. in Travis):
- stage: validate
script: pdk validate
- stage: test
script: pdk test unitThis is a setup you don't need to look up in documentation to get it explained. It's something you can explain to a colleague even as a complete newbie to CI, Travis & friends.
Can someone explain why the current templates still look, I apologize, confusing and use plain bundle, gem, rake commands?
Copied from original issue: puppetlabs/pdk-templates#85