MODULES-10242 Add ubuntu14 support back to the modules
[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   -
21     if: tag =~ ^v\d
22     name: deploy
23 matrix:
24   fast_finish: true
25   include:
26     -
27       env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint"
28       stage: static
29     -
30       env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
31       rvm: 2.4.5
32       stage: spec
33     -
34       env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
35       rvm: 2.5.3
36       stage: spec
37     -
38       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"]
39       bundler_args: 
40       dist: trusty
41       env: PLATFORMS=deb_puppet5
42       rvm: 2.5.3
43       script: ["bundle exec rake litmus:acceptance:parallel"]
44       services: docker
45       stage: acceptance
46       sudo: required
47     -
48       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"]
49       bundler_args: 
50       dist: trusty
51       env: PLATFORM=deb_puppet6
52       rvm: 2.5.3
53       script: ["bundle exec rake litmus:acceptance:parallel"]
54       services: docker
55       stage: acceptance
56       sudo: required
57     -
58       env: DEPLOY_TO_FORGE=yes
59       stage: deploy
60 branches:
61   only:
62     - master
63     - /^v\d/
64     - release
65 notifications:
66   email: false