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