---
sudo: false
language: ruby
cache: bundler
bundler_args: --without development system_tests
before_install: rm Gemfile.lock || true
script: bundle exec rake test SPEC_OPTS='--format documentation'
matrix:
  fast_finish: true
  include:
  - rvm: 2.1
    env: PUPPET_VERSION="~> 3"
  - rvm: 2.3
    env: PUPPET_VERSION="~> 4"
  - rvm: 2.4
    env: PUPPET_VERSION="~> 5"
  # Beaker tests
  - env: BEAKER_set=debian-8-64
    bundler_args: --without development
    script: bundle exec rake beaker
    dist: trusty
    services: docker
    sudo: required
# Disabled due to https://github.com/puppetlabs/puppetlabs-apache/pull/1724
#  - env: BEAKER_set=default  # Debian 9
#    bundler_args: --without development
#    script: bundle exec rake beaker
#    dist: trusty
#    services: docker
#    sudo: required
  - env: BEAKER_set=ubuntu-1404-64
    bundler_args: --without development
    script: bundle exec rake beaker
    dist: trusty
    services: docker
    sudo: required
  - env: BEAKER_set=ubuntu-1604-64
    bundler_args: --without development
    script: bundle exec rake beaker
    dist: trusty
    services: docker
    sudo: required

---
sudo: false
language: ruby
cache: bundler
bundler_args: --without development system_tests
before_install: rm Gemfile.lock || true
script: bundle exec rake test SPEC_OPTS='--format documentation'
matrix:
  fast_finish: true
  include:
  - rvm: 2.3
    env: PUPPET_VERSION="~> 4"
  - rvm: 2.4
    env: PUPPET_VERSION="~> 5"
  # Beaker tests
  - env: BEAKER_set=debian-8-64
    bundler_args: --without development
    script: bundle exec rake beaker
    dist: trusty
    services: docker
    sudo: required
# Disabled due to https://github.com/puppetlabs/puppetlabs-apache/pull/1724
#  - env: BEAKER_set=default  # Debian 9
#    bundler_args: --without development
#    script: bundle exec rake beaker
#    dist: trusty
#    services: docker
#    sudo: required
  - env: BEAKER_set=ubuntu-1404-64
    bundler_args: --without development
    script: bundle exec rake beaker
    dist: trusty
    services: docker
    sudo: required
  - env: BEAKER_set=ubuntu-1604-64
    bundler_args: --without development
    script: bundle exec rake beaker
    dist: trusty
    services: docker
    sudo: required

Drop CI support for Puppet 3
Drop CI support for Puppet 3
