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 travis CI and enable semantic-release #31

Merged
merged 10 commits into from
Jul 31, 2019

Conversation

baby-gnu
Copy link
Contributor

Convert the existing kitchen configuration to template-formula
standard and enable semantic-release.

baby-gnu added 7 commits July 31, 2019 15:35
We select only Debian, Ubuntu and Centos since other platorms are not
supported.

* .travis.yml: use the same configuration as “template-formula” but
  enable only supported platforms and disable “release” job.

* kitchen.yml: use the same matrix as “template-formula”. The salt
  state to apply is “dhcpd.config”.

* Gemfile: require kitchen gems for docker, salt and inspec.

* commitlint.config.js: configure the commit verification tool.

* bin/kitchen: provide a kitchen wrapper.

* test/integration/default/README.md: document the default profile
  usage.

* test/integration/default/inspec.yml: describe the InSpec profile.
* test/integration/default/controls/packages_spec.rb: test package
  name depending on the OS family.
* test/integration/default/controls/config_spec.rb: simple checks on
  the daemon configuration file.
* test/integration/default/controls/config_spec.rb: simple checks on
  the service configuration file.
The “pillar.example” file disable the DHCPD service.

* test/integration/default/controls/config_spec.rb: verify that the
  service is installed but disabled and not running.
@baby-gnu baby-gnu requested review from aboe76 and myii July 31, 2019 14:07
baby-gnu added 2 commits July 31, 2019 16:08
* .travis.yml: enable the “release” stage.

* pre-commit_semantic-release.sh: mangle “FORMULA” and convert
  markdown files to RST.

* release-rules.js: configure the commit type / release type
  associations.

* release.config.js: configure the semantic-release process.
* Automated using `ssf-formula` (v0.1.0-rc.4)
@myii
Copy link
Member

myii commented Jul 31, 2019

Fantastic work @baby-gnu. As you can see, I've added another commit: b6df481. Most of it is self-explanatory but you may not like what's changed in inspec.yml. If you're not happy, we can fix that in another PR because once the tests pass, I'm going to go ahead and merge this, since this is ready to move forward.

@myii myii merged commit d930846 into saltstack-formulas:master Jul 31, 2019
@myii
Copy link
Member

myii commented Jul 31, 2019

@baby-gnu Done! Actually, we may want to compare between both the FORMULA file and inspec.yml, to find the most appropriate result.

@saltstack-formulas-travis

🎉 This PR is included in version 0.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants