467c135b4906f6de7f9a8616c89db4166f41ea7c
[puppet-modules/puppetlabs-apt.git] / .travis.yml
1 ---
2 dist: xenial
3 language: ruby
4 cache: bundler
5 before_install:
6   - bundle -v
7   - rm -f Gemfile.lock
8   - "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner"
9   - "# See https://github.com/puppetlabs/pdk-templates/commit/705154d5c437796b821691b707156e1b056d244f for an example of how this was used"
10   - "# Ignore exit code of SIGPIPE'd yes to not fail with shell's pipefail set"
11   - '[ -z "$RUBYGEMS_VERSION" ] || (yes || true) | gem update --system $RUBYGEMS_VERSION'
12   - gem --version
13   - bundle -v
14 script:
15   - 'SIMPLECOV=yes bundle exec rake $CHECK'
16 bundler_args: --without system_tests
17 rvm:
18   - 2.5.3
19 env:
20   global:
21     - HONEYCOMB_WRITEKEY="7f3c63a70eecc61d635917de46bea4e6",HONEYCOMB_DATASET="litmus tests"
22 stages:
23   - static
24   - spec
25   - acceptance
26 matrix:
27   fast_finish: true
28   include:
29     -
30       env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint"
31       stage: static
32     -
33       env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
34       rvm: 2.4.5
35       stage: spec
36     -
37       env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
38       rvm: 2.5.3
39       stage: spec
40     -
41       before_script: ["bundle exec rake 'litmus:provision_list[travis_deb]'", "bundle exec bolt command run 'apt-get install wget -y' --inventoryfile inventory.yaml --nodes='localhost*'", "bundle exec rake 'litmus:install_agent[puppet5]'", "bundle exec rake litmus:install_module"]
42       bundler_args: 
43       dist: trusty
44       env: PLATFORMS=deb_puppet5
45       rvm: 2.5.3
46       script: ["bundle exec rake litmus:acceptance:parallel"]
47       services: docker
48       stage: acceptance
49       sudo: required
50     -
51       before_script: ["bundle exec rake 'litmus:provision_list[travis_deb]'", "bundle exec bolt command run 'apt-get install wget -y' --inventoryfile inventory.yaml --nodes='localhost*'", "bundle exec rake 'litmus:install_agent[puppet6]'", "bundle exec rake litmus:install_module"]
52       bundler_args: 
53       dist: trusty
54       env: PLATFORM=deb_puppet6
55       rvm: 2.5.3
56       script: ["bundle exec rake litmus:acceptance:parallel"]
57       services: docker
58       stage: acceptance
59       sudo: required
60     -
61       before_script: ["bundle exec rake 'litmus:provision_list[travis_ub]'", "bundle exec bolt command run 'apt-get install wget -y' --inventoryfile inventory.yaml --nodes='localhost*'", "bundle exec rake 'litmus:install_agent[puppet5]'", "bundle exec rake litmus:install_module"]
62       bundler_args: 
63       dist: trusty
64       env: PLATFORMS=ub_puppet5
65       rvm: 2.5.3
66       script: ["bundle exec rake litmus:acceptance:parallel"]
67       services: docker
68       stage: acceptance
69       sudo: required
70     -
71       before_script: ["bundle exec rake 'litmus:provision_list[travis_ub]'", "bundle exec bolt command run 'apt-get install wget -y' --inventoryfile inventory.yaml --nodes='localhost*'", "bundle exec rake 'litmus:install_agent[puppet6]'", "bundle exec rake litmus:install_module"]
72       bundler_args: 
73       dist: trusty
74       env: PLATFORM=ub_puppet6
75       rvm: 2.5.3
76       script: ["bundle exec rake litmus:acceptance:parallel"]
77       services: docker
78       stage: acceptance
79       sudo: required
80 branches:
81   only:
82     - master
83     - /^v\d/
84     - release
85 notifications:
86   email: false
87   slack:
88     secure: KeXxAkZ1x/P1otYM3pgpEFnJdFRLDDz0YlTmDRwdNYy09LGo4lRUuUUEUUZoTe4oQaMb3+NigiAs+3j2A7OIMKlcUFWz5zetqnyMdIceJm99iJOD6Ng/kVblo38bN28oVwss66XzG1T0c0+YFMF+X0NkUezbr6RaJrZNsCNTH9M=