pdksync_heads/master-0-g7827fc2
[puppet-modules/puppetlabs-apt.git] / .travis.yml
1 ---
2 language: ruby
3 cache: bundler
4 before_install:
5   - bundle -v
6   - rm -f Gemfile.lock
7   - gem update --system $RUBYGEMS_VERSION
8   - gem --version
9   - bundle -v
10 script:
11   - 'bundle exec rake $CHECK'
12 bundler_args: --without system_tests
13 rvm:
14   - 2.5.3
15 stages:
16   - static
17   - spec
18   - acceptance
19   -
20     if: tag =~ ^v\d
21     name: deploy
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.3
30       script: bundle exec rake beaker
31       services: docker
32       stage: acceptance
33       sudo: required
34     -
35       bundler_args: 
36       dist: trusty
37       env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=docker/ubuntu-14.04 BEAKER_TESTMODE=apply
38       rvm: 2.5.3
39       script: bundle exec rake beaker
40       services: docker
41       stage: acceptance
42       sudo: required
43     -
44       env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint"
45       stage: static
46     -
47       env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
48       rvm: 2.4.5
49       stage: spec
50     -
51       env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
52       rvm: 2.5.3
53       stage: spec
54     -
55       env: DEPLOY_TO_FORGE=yes
56       stage: deploy
57 branches:
58   only:
59     - master
60     - /^v\d/
61     - release
62 notifications:
63   email: false