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

diff supported OS with acceptance tests #216

Open
bastelfreak opened this issue Aug 2, 2020 · 0 comments
Open

diff supported OS with acceptance tests #216

bastelfreak opened this issue Aug 2, 2020 · 0 comments

Comments

@bastelfreak
Copy link
Member

the metadata.json is the authoritative source of supported operating systems and their version for every puppet module. If a project has tests (any file in spec/acceptance/*.rb), we need to check if the tests are enabled for the correct operating systems.

Sadly beaker only supports a limited list of OSes for tests:

  • Centos 6 / 7 / 8
  • Debian 8 / 9 / 10
  • Ubuntu 16.04 / 18.04 / 20.04

if those OSes are in metadata.json, the .sync.yml needs to list them, like this:

---
.travis.yml:
  docker_sets:
    - set: ubuntu1604-64
    - set: centos7-64
    - set: debian8-64

besides that, the .travis.yml needs to contain an entry for each OS (.travis.yml is generated by modulesync based on .sync.yml)

---
jobs:
  include:
  - rvm: 2.4.4
    bundler_args: --without system_tests development release
    env: PUPPET_VERSION="~> 5.0" CHECK=test
  - rvm: 2.5.3
    bundler_args: --without system_tests development release
    env: PUPPET_VERSION="~> 6.0" CHECK=test_with_coveralls
  - rvm: 2.5.3
    bundler_args: --without system_tests development release
    env: PUPPET_VERSION="~> 6.0" CHECK=rubocop
  - rvm: 2.4.4
    bundler_args: --without system_tests development release
    env: PUPPET_VERSION="~> 5.0" CHECK=build DEPLOY_TO_FORGE=yes
  - rvm: 2.5.3
    bundler_args: --without development release
    env: BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_setfile=ubuntu1604-64 CHECK=beaker
    services: docker
  - rvm: 2.5.3
    bundler_args: --without development release
    env: BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_setfile=ubuntu1604-64 CHECK=beaker
    services: docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant