Merge pull request #901 from puppetlabs/pdksync_github_actions
[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   - '[ -z "$RUBYGEMS_VERSION" ] || gem update --system $RUBYGEMS_VERSION'
11   - gem --version
12   - bundle -v
13 script:
14   - 'SIMPLECOV=yes bundle exec rake $CHECK'
15 bundler_args: --without system_tests
16 rvm:
17   - 2.5.3
18 stages:
19   - static
20   - spec
21   - acceptance
22 matrix:
23   fast_finish: true
24   include:
25     -
26       env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint"
27       stage: static
28     -
29       env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
30       rvm: 2.4.5
31       stage: spec
32     -
33       env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
34       rvm: 2.5.3
35       stage: spec
36     -
37       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"]
38       bundler_args: 
39       dist: trusty
40       env: PLATFORMS=deb_puppet5
41       rvm: 2.5.3
42       script: ["bundle exec rake litmus:acceptance:parallel"]
43       services: docker
44       stage: acceptance
45       sudo: required
46     -
47       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"]
48       bundler_args: 
49       dist: trusty
50       env: PLATFORM=deb_puppet6
51       rvm: 2.5.3
52       script: ["bundle exec rake litmus:acceptance:parallel"]
53       services: docker
54       stage: acceptance
55       sudo: required
56 branches:
57   only:
58     - master
59     - /^v\d/
60     - release
61 notifications:
62   email: false
63   slack:
64     secure: KeXxAkZ1x/P1otYM3pgpEFnJdFRLDDz0YlTmDRwdNYy09LGo4lRUuUUEUUZoTe4oQaMb3+NigiAs+3j2A7OIMKlcUFWz5zetqnyMdIceJm99iJOD6Ng/kVblo38bN28oVwss66XzG1T0c0+YFMF+X0NkUezbr6RaJrZNsCNTH9M=