]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/blob - .travis.yml
pdksync_heads/master-0-g9c815ea
[puppet-modules/puppetlabs-apt.git] / .travis.yml
1 ---
2 dist: trusty
3 language: ruby
4 cache: bundler
5 before_install:
6   - if [ $BUNDLER_VERSION ]; then
7       gem install -v $BUNDLER_VERSION bundler --no-rdoc --no-ri;
8     fi
9   - bundle -v
10   - rm -f Gemfile.lock
11   - gem update --system $RUBYGEMS_VERSION
12   - gem --version
13   - bundle -v
14 script:
15   - 'bundle exec rake $CHECK'
16 bundler_args: --without system_tests
17 rvm:
18   - 2.5.1
19 env:
20   global:
21     - BEAKER_PUPPET_COLLECTION=puppet6 PUPPET_GEM_VERSION="~> 6.0"
22 matrix:
23   fast_finish: true
24   include:
25     -
26       bundler_args: 
27       dist: trusty
28       env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=docker/debian-8 BEAKER_TESTMODE=apply
29       rvm: 2.5.1
30       script: bundle exec rake beaker
31       services: docker
32       sudo: required
33     -
34       bundler_args: 
35       dist: trusty
36       env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=docker/ubuntu-14.04 BEAKER_TESTMODE=apply
37       rvm: 2.5.1
38       script: bundle exec rake beaker
39       services: docker
40       sudo: required
41     -
42       env: CHECK="syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop"
43     -
44       env: CHECK=parallel_spec
45     -
46       env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
47       rvm: 2.4.4
48     -
49       env: PUPPET_GEM_VERSION="~> 4.0" CHECK=parallel_spec RUBYGEMS_VERSION=2.7.8 BUNDLER_VERSION=1.17.3
50       rvm: 2.1.9
51 branches:
52   only:
53     - master
54     - /^v\d/
55     - release
56 notifications:
57   email: false
58 deploy:
59   provider: puppetforge
60   user: puppet
61   password:
62     secure: ""
63   on:
64     tags: true
65     all_branches: true
66     condition: "$DEPLOY_TO_FORGE = yes"