machine:
  services:
    - docker

dependencies:
  override:
    - docker build -f dockerfiles/centos -t jamesnetherton/google-chrome-centos .
    - docker build -f dockerfiles/debian -t jamesnetherton/google-chrome-debian .
    - docker build -f dockerfiles/fedora -t jamesnetherton/google-chrome-fedora .
    - docker build -f dockerfiles/suse -t jamesnetherton/google-chrome-suse .
    - docker build -f dockerfiles/suse -t jamesnetherton/google-chrome-ubuntu .

test:
  override:
    - docker run --rm jamesnetherton/puppet-google-chrome-centos
    - docker run --rm jamesnetherton/puppet-google-chrome-debian
    - docker run --rm jamesnetherton/puppet-google-chrome-fedora
    - docker run --rm jamesnetherton/puppet-google-chrome-suse
    - docker run --rm jamesnetherton/puppet-google-chrome-ubuntu

test:
  post:
    - bundle install
    - bundle exec rake spec
    - bundle exec puppet-lint manifests --no-documentation-check --no-autoloader_layout-check --no-class_inherits_from_params_class-check
    - bundle exec puppet module build
    - mkdir dist && cp pkg/*.tar.gz dist/

general:
  artifacts:
    - "dist"

machine:
  services:
    - docker

dependencies:
  override:
    - docker build -f dockerfiles/centos -t jamesnetherton/google-chrome-centos .
    - docker build -f dockerfiles/debian -t jamesnetherton/google-chrome-debian .
    - docker build -f dockerfiles/fedora -t jamesnetherton/google-chrome-fedora .
    - docker build -f dockerfiles/suse -t jamesnetherton/google-chrome-suse .
    - docker build -f dockerfiles/suse -t jamesnetherton/google-chrome-ubuntu .

test:
  override:
    - docker run --rm jamesnetherton/google-chrome-centos
    - docker run --rm jamesnetherton/google-chrome-debian
    - docker run --rm jamesnetherton/google-chrome-fedora
    - docker run --rm jamesnetherton/google-chrome-suse
    - docker run --rm jamesnetherton/google-chrome-ubuntu

  post:
    - bundle install
    - bundle exec rake spec
    - bundle exec puppet-lint manifests --no-documentation-check --no-autoloader_layout-check --no-class_inherits_from_params_class-check
    - bundle exec puppet module build
    - mkdir dist && cp pkg/*.tar.gz dist/

general:
  artifacts:
    - "dist"

Verify that chrome was installed in containers
Verify that chrome was installed in containers
