.travis.yml 3.68 KB
Newer Older
1
---
2
language: ruby
3
sudo: false
Mickaël Canévet's avatar
Mickaël Canévet committed
4 5 6 7
addons:
  apt:
    packages:
      - libaugeas-dev
Raphaël Pinson's avatar
Raphaël Pinson committed
8 9
    sources:
      - augeas
Mickaël Canévet's avatar
Mickaël Canévet committed
10 11
cache: bundler
bundler_args: --without system_tests
Mickaël Canévet's avatar
Mickaël Canévet committed
12
script: ["bundle exec rake validate", "bundle exec rake lint", "bundle exec rake spec SPEC_OPTS='--format documentation'"]
13
matrix:
14
  fast_finish: true
15
  include:
Raphaël Pinson's avatar
Raphaël Pinson committed
16
  - rvm: 2.1
17
    env: PUPPET_GEM_VERSION="~> 4.0"
Raphaël Pinson's avatar
Raphaël Pinson committed
18
  - rvm: 2.4
Raphaël Pinson's avatar
Raphaël Pinson committed
19
    env: PUPPET_GEM_VERSION="~> 5.0"
Raphaël Pinson's avatar
Raphaël Pinson committed
20 21
  - rvm: 2.5
    env: PUPPET_GEM_VERSION="~> 6.0"
22 23 24
  - rvm: default
    sudo: required
    services: docker
Raphaël Pinson's avatar
Raphaël Pinson committed
25 26 27 28 29 30
    env:
      - PUPPET_INSTALL_TYPE=agent
      - BEAKER_IS_PE=no
      - BEAKER_PUPPET_COLLECTION=puppet5
      - BEAKER_debug=true
      - BEAKER_setfile=debian6-64{hypervisor=docker}
31
    bundler_args:
Raphaël Pinson's avatar
Raphaël Pinson committed
32
    script: bundle exec rspec spec/acceptance/*_spec.rb
33 34 35
  - rvm: default
    sudo: required
    services: docker
Raphaël Pinson's avatar
Raphaël Pinson committed
36 37 38 39 40 41
    env:
      - PUPPET_INSTALL_TYPE=agent
      - BEAKER_IS_PE=no
      - BEAKER_PUPPET_COLLECTION=puppet5
      - BEAKER_debug=true
      - BEAKER_setfile=debian7-64{hypervisor=docker}
42
    bundler_args:
Raphaël Pinson's avatar
Raphaël Pinson committed
43
    script: bundle exec rspec spec/acceptance/*_spec.rb
44 45 46
  - rvm: default
    sudo: required
    services: docker
Raphaël Pinson's avatar
Raphaël Pinson committed
47 48 49 50 51 52
    env:
      - PUPPET_INSTALL_TYPE=agent
      - BEAKER_IS_PE=no
      - BEAKER_PUPPET_COLLECTION=puppet5
      - BEAKER_debug=true
      - BEAKER_setfile=debian8-64{hypervisor=docker}
53
    bundler_args:
Raphaël Pinson's avatar
Raphaël Pinson committed
54
    script: bundle exec rspec spec/acceptance/*_spec.rb
55 56 57
  - rvm: default
    sudo: required
    services: docker
Raphaël Pinson's avatar
Raphaël Pinson committed
58 59 60 61 62 63
    env:
      - PUPPET_INSTALL_TYPE=agent
      - BEAKER_IS_PE=no
      - BEAKER_PUPPET_COLLECTION=puppet5
      - BEAKER_debug=true
      - BEAKER_setfile=ubuntu1404-64{hypervisor=docker}
64
    bundler_args:
Raphaël Pinson's avatar
Raphaël Pinson committed
65
    script: bundle exec rspec spec/acceptance/*_spec.rb
66 67 68
  - rvm: default
    sudo: required
    services: docker
Raphaël Pinson's avatar
Raphaël Pinson committed
69 70 71 72 73 74
    env:
      - PUPPET_INSTALL_TYPE=agent
      - BEAKER_IS_PE=no
      - BEAKER_PUPPET_COLLECTION=puppet5
      - BEAKER_debug=true
      - BEAKER_setfile=ubuntu1604-64{hypervisor=docker}
75
    bundler_args:
Raphaël Pinson's avatar
Raphaël Pinson committed
76
    script: bundle exec rspec spec/acceptance/*_spec.rb
77 78 79
  - rvm: default
    sudo: required
    services: docker
Raphaël Pinson's avatar
Raphaël Pinson committed
80 81 82 83 84 85
    env:
      - PUPPET_INSTALL_TYPE=agent
      - BEAKER_IS_PE=no
      - BEAKER_PUPPET_COLLECTION=puppet5
      - BEAKER_debug=true
      - BEAKER_setfile=centos6-64{hypervisor=docker}
86
    bundler_args:
Raphaël Pinson's avatar
Raphaël Pinson committed
87
    script: bundle exec rspec spec/acceptance/*_spec.rb
88 89 90
  - rvm: default
    sudo: required
    services: docker
Raphaël Pinson's avatar
Raphaël Pinson committed
91 92 93 94 95 96
    env:
      - PUPPET_INSTALL_TYPE=agent
      - BEAKER_IS_PE=no
      - BEAKER_PUPPET_COLLECTION=puppet5
      - BEAKER_debug=true
      - BEAKER_setfile=centos7-64{hypervisor=docker}
97
    bundler_args:
Raphaël Pinson's avatar
Raphaël Pinson committed
98
    script: bundle exec rspec spec/acceptance/*_spec.rb
99 100 101 102
  allow_failures:
    - rvm: default
      sudo: required
      services: docker
Raphaël Pinson's avatar
Raphaël Pinson committed
103
      env: ["PUPPET_INSTALL_TYPE=agent", "BEAKER_IS_PE=no", "BEAKER_PUPPET_COLLECTION=puppet5", "BEAKER_debug=true", "BEAKER_setfile=debian6-64{hypervisor=docker}"]
104
      bundler_args: 
Raphaël Pinson's avatar
Raphaël Pinson committed
105
      script: bundle exec rspec spec/acceptance/*_spec.rb
106 107 108
    - rvm: default
      sudo: required
      services: docker
Raphaël Pinson's avatar
Raphaël Pinson committed
109
      env: ["PUPPET_INSTALL_TYPE=agent", "BEAKER_IS_PE=no", "BEAKER_PUPPET_COLLECTION=puppet5", "BEAKER_debug=true", "BEAKER_setfile=debian7-64{hypervisor=docker}"]
110
      bundler_args: 
Raphaël Pinson's avatar
Raphaël Pinson committed
111
      script: bundle exec rspec spec/acceptance/*_spec.rb
112 113
notifications:
  email: false
Raphaël Pinson's avatar
Raphaël Pinson committed
114 115 116 117 118 119 120 121 122 123
deploy:
  provider: puppetforge
  user: camptocamp
  password:
    secure: "XAv4O363tng0KuRnu1ZhhwORy+2CF9UQwdwlFmS+NG9jOaTZZN+PMK8iC7OSIvZN6cfKlYjHRHNuxFBnYlnMrLsM9fVxt4NjjznOgIKQpQDleWk4UitZj5ntyHmUtYtofUd5Bhi/sdYXwGN9pVRCrcfFBmsIRq/dOhXD7Wy5KcQ="
  on:
    tags: true
    # all_branches is required to use tags
    all_branches: true
    # Only publish if our main Ruby target builds
124
    rvm: 2.4