-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f121d7
commit 11d6e83
Showing
1 changed file
with
89 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,107 +1,111 @@ | ||
--- | ||
dist: bionic | ||
language: ruby | ||
cache: bundler | ||
before_install: | ||
- bundle -v | ||
- rm -f Gemfile.lock | ||
- gem update --system $RUBYGEMS_VERSION | ||
- gem --version | ||
- bundle -v | ||
- bundle -v | ||
- rm -f Gemfile.lock | ||
- gem update --system $RUBYGEMS_VERSION | ||
- gem --version | ||
- bundle -v | ||
script: | ||
- 'bundle exec rake $CHECK' | ||
- bundle exec rake $CHECK | ||
rvm: | ||
- 2.5.3 | ||
- 2.5.3 | ||
stages: | ||
- static | ||
- spec | ||
- acceptance | ||
- name: deploy | ||
if: tag =~ ^v\d | ||
- static | ||
- spec | ||
- acceptance | ||
- name: deploy | ||
if: tag =~ ^v\d | ||
jobs: | ||
fast_finish: true | ||
include: | ||
- stage: static | ||
bundler_args: --without system_tests | ||
env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint" | ||
|
||
- stage: spec | ||
bundler_args: --without system_tests | ||
env: PUPPET_GEM_VERSION="~> 6.0" CHECK="parallel_spec spec/classes spec/defines" | ||
|
||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet5" BEAKER_setfile=centos7-64 BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet6" BEAKER_setfile=centos7-64 BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
|
||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet5" BEAKER_setfile=centos8-64 BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet6" BEAKER_setfile=centos8-64 BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
|
||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet5" BEAKER_setfile=debian9-64 BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet6" BEAKER_setfile=debian9-64 BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
|
||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet5" BEAKER_setfile=debian10-64 BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet6" BEAKER_setfile=debian10-64 BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
|
||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet5" BEAKER_setfile=fedora29-64 BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet6" BEAKER_setfile=fedora29-64 BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
|
||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet5" BEAKER_setfile=fedora30-64 BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet6" BEAKER_setfile=fedora30-64 BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
|
||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet5" BEAKER_setfile=fedora31-64 BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet6" BEAKER_setfile=fedora31-64 BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
|
||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet5" BEAKER_setfile=ubuntu1804-64 BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet6" BEAKER_setfile=ubuntu1804-64 BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
|
||
- stage: deploy | ||
bundler_args: --without system_tests | ||
env: CHECK=build DEPLOY_TO_FORGE=yes | ||
- stage: static | ||
bundler_args: "--without system_tests" | ||
env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file | ||
rubocop syntax lint metadata_lint" | ||
- stage: spec | ||
bundler_args: "--without system_tests" | ||
env: PUPPET_GEM_VERSION="~> 6.0" CHECK="parallel_spec spec/classes spec/defines" | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet5" BEAKER_setfile=centos7-64 | ||
BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet6" BEAKER_setfile=centos7-64 | ||
BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet5" BEAKER_setfile=centos8-64 | ||
BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet6" BEAKER_setfile=centos8-64 | ||
BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet5" BEAKER_setfile=debian9-64 | ||
BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet6" BEAKER_setfile=debian9-64 | ||
BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet5" BEAKER_setfile=debian10-64 | ||
BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet6" BEAKER_setfile=debian10-64 | ||
BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet5" BEAKER_setfile=fedora29-64 | ||
BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet6" BEAKER_setfile=fedora29-64 | ||
BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet5" BEAKER_setfile=fedora30-64 | ||
BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet6" BEAKER_setfile=fedora30-64 | ||
BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet5" BEAKER_setfile=fedora31-64 | ||
BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet6" BEAKER_setfile=fedora31-64 | ||
BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet5" BEAKER_setfile=ubuntu1804-64 | ||
BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: acceptance | ||
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION="puppet6" BEAKER_setfile=ubuntu1804-64 | ||
BEAKER_debug=true BEAKER_HYPERVISOR=docker CHECK="beaker" | ||
services: docker | ||
- stage: deploy | ||
bundler_args: "--without system_tests" | ||
env: CHECK=build DEPLOY_TO_FORGE=yes | ||
branches: | ||
only: | ||
- master | ||
- /^v\d/ | ||
- master | ||
- "/^v\\d/" | ||
notifications: | ||
email: false | ||
deploy: | ||
provider: puppetforge | ||
user: maeq | ||
password: | ||
secure: ${{ secrets.FORGE_API_KEY }} | ||
secure: "$FORGE_PASSWORD" | ||
on: | ||
tags: true | ||
# all_branches is required to use tags | ||
all_branches: true | ||
# Only publish the build marked with "DEPLOY_TO_FORGE" | ||
condition: "$DEPLOY_TO_FORGE = yes" |