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