Enable PDK (validation, testing)#15
Conversation
f81769c to
be1a4b6
Compare
|
The Travis configuration now uses the PDK commands and the beautiful Travis build stages feature for enhanced readability. We could specify a list of Rubys or RVMs in addition for running a build matrix, e.g. rvm:
- 2.3
- 2.4More details in the related docs. You probably know better what would be sensible to test against. |
|
Note that PR #16 contains changes that will conflict with this PR. Specifically, the RSpec tests for Skype it {
is_expected.to contain_apt__source('skype-stable')
.with(
location: 'https://repo.skype.com/deb',
release: 'stable',
repos: 'main',
architecture: 'amd64',
)
} |
Makes `pdk validate` and `pdk test unit` work
be1a4b6 to
2a6e33a
Compare
|
This PR is now ready for merging. |
|
@edestecd Any chance of getting this merged? |
|
🔔 ping! Please merge! |
| script: pdk validate 2> /dev/null | ||
|
|
||
| - stage: test | ||
| script: pdk test unit 2> /dev/null |
There was a problem hiding this comment.
The redirection of the progress indicators may not be needed anymore (or be replaced by command line options) for the latest versions of the PDK. But that can also be done once this PR is merged.
|
@edestecd Any chance to get this merged? |
|
@bittner Sorry, thanks for bugging me about it. This module needs some serious love. I finally got around to learning PDK and converted some of our modules already. Can you use a newer version of PDK and use PDK version 1.4.1 or 1.5.0 will do. I think my other modules are pinned at 1.4.1, so thats probably best: https://github.com/edestecd/puppet-mariadb/blob/master/metadata.json#L74 Also can you use this .sync.yml? https://github.com/edestecd/puppet-mariadb/blob/master/.sync.yml |
|
I don't have access to the |
|
I was going to say whats the point, b/c the new PDK will replace all the files you edited.... I will probably merge this then and add the new PDK convert after. |
|
@bittner thanks for your contribution and pestering me to get this in. |
|
If you want to do the PDK convert also, let me know and i'll wait |
No, go on with the merging. Thank you! |
|
Thank you! 👍 |
|
The build on Not sure what's going on. 😕 |
|
I'll look in a bit. I'm going to update pdk in a few. |
|
Could it be that chocolately needs to be added to the .fixtures.yml? |
|
more than likely |
|
Whew, there were a lot of windows issues I had to fix. I suspect the tests were not actually running against windows before. Probably the facts gem did not contain facts for the versions of windows specified in out metadata.json. Anyways its all fixed up now. |
As mentioned in #9, a few changes can make it possible to use Puppet's new PDK with this module.
I've also fixed the linter complaints
pdk validatehas reported.