MODULES-10063, extend apt::key to support deeplinks, current implementation only...
[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   - '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       env: DEPLOY_TO_FORGE=yes
39       stage: deploy
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       sudo: required
59 branches:
60   only:
61     - master
62     - /^v\d/
63     - release
64 notifications:
65   email: false