.travis.yml 2.53 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:
16 17 18 19
  - rvm: 1.9.3
    env: PUPPET_GEM_VERSION="~> 3.0"
  - rvm: 2.0.0
    env: PUPPET_GEM_VERSION="~> 3.0"
Raphaël Pinson's avatar
Raphaël Pinson committed
20 21
  - rvm: 2.0.0
    env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
Raphaël Pinson's avatar
Raphaël Pinson committed
22
  - rvm: 2.1.9
Raphaël Pinson's avatar
Raphaël Pinson committed
23
    env: PUPPET_GEM_VERSION="~> 4.5.0"
Garrett Honeycutt's avatar
Garrett Honeycutt committed
24 25
  - rvm: 2.3.1
    env: PUPPET_GEM_VERSION="~> 4"
26 27
  - rvm: default
    sudo: required
Mickaël Canévet's avatar
Mickaël Canévet committed
28
    dist: trusty
29
    services: docker
Mickaël Canévet's avatar
Mickaël Canévet committed
30
    env: BEAKER_set="debian-6"
31
    bundler_args:
Mickaël Canévet's avatar
Mickaël Canévet committed
32
    script: sudo service docker restart ; sleep 10 && bundle exec rspec spec/acceptance/*_spec.rb
33 34
  - rvm: default
    sudo: required
Mickaël Canévet's avatar
Mickaël Canévet committed
35
    dist: trusty
36
    services: docker
Mickaël Canévet's avatar
Mickaël Canévet committed
37
    env: BEAKER_set="debian-7"
38
    bundler_args:
Mickaël Canévet's avatar
Mickaël Canévet committed
39
    script: sudo service docker restart ; sleep 10 && bundle exec rspec spec/acceptance/*_spec.rb
40 41
  - rvm: default
    sudo: required
Mickaël Canévet's avatar
Mickaël Canévet committed
42
    dist: trusty
43
    services: docker
Mickaël Canévet's avatar
Mickaël Canévet committed
44
    env: BEAKER_set="debian-8"
45
    bundler_args:
Mickaël Canévet's avatar
Mickaël Canévet committed
46
    script: sudo service docker restart ; sleep 10 && bundle exec rspec spec/acceptance/*_spec.rb
47 48
  - rvm: default
    sudo: required
Mickaël Canévet's avatar
Mickaël Canévet committed
49
    dist: trusty
50
    services: docker
Raphaël Pinson's avatar
Raphaël Pinson committed
51
    env: BEAKER_set="ubuntu-14.04"
52
    bundler_args:
Mickaël Canévet's avatar
Mickaël Canévet committed
53
    script: sudo service docker restart ; sleep 10 && bundle exec rspec spec/acceptance/*_spec.rb
54 55
  - rvm: default
    sudo: required
Mickaël Canévet's avatar
Mickaël Canévet committed
56
    dist: trusty
57
    services: docker
Raphaël Pinson's avatar
Raphaël Pinson committed
58
    env: BEAKER_set="ubuntu-16.04"
59
    bundler_args:
Mickaël Canévet's avatar
Mickaël Canévet committed
60
    script: sudo service docker restart ; sleep 10 && bundle exec rspec spec/acceptance/*_spec.rb
61 62
  - rvm: default
    sudo: required
Mickaël Canévet's avatar
Mickaël Canévet committed
63
    dist: trusty
64
    services: docker
Mickaël Canévet's avatar
Mickaël Canévet committed
65
    env: BEAKER_set="centos-6"
66
    bundler_args:
Mickaël Canévet's avatar
Mickaël Canévet committed
67
    script: sudo service docker restart ; sleep 10 && bundle exec rspec spec/acceptance/*_spec.rb
68 69
  - rvm: default
    sudo: required
Mickaël Canévet's avatar
Mickaël Canévet committed
70
    dist: trusty
71
    services: docker
Mickaël Canévet's avatar
Mickaël Canévet committed
72
    env: BEAKER_set="centos-7"
73
    bundler_args:
Mickaël Canévet's avatar
Mickaël Canévet committed
74
    script: sudo service docker restart ; sleep 10 && bundle exec rspec spec/acceptance/*_spec.rb
75 76
notifications:
  email: false
Raphaël Pinson's avatar
Raphaël Pinson committed
77 78 79 80 81 82 83 84 85 86
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
Raphaël Pinson's avatar
Raphaël Pinson committed
87
    rvm: 2.1.9