.travis.yml 2.66 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
Mickaël Canévet's avatar
Mickaël Canévet committed
8 9
cache: bundler
bundler_args: --without system_tests
Mickaël Canévet's avatar
Mickaël Canévet committed
10
script: ["bundle exec rake validate", "bundle exec rake lint", "bundle exec rake spec SPEC_OPTS='--format documentation'", "bundle exec rake metadata"]
11
matrix:
12
  fast_finish: true
13
  include:
14
  - rvm: 1.8.7
Mickaël Canévet's avatar
Mickaël Canévet committed
15
    env: PUPPET_GEM_VERSION="~> 3.0" FACTER_GEM_VERSION="~> 1.7.0"
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"
Mickaël Canévet's avatar
Mickaël Canévet committed
22
  - rvm: 2.1.7
23
    env: PUPPET_GEM_VERSION="~> 4.0"
24 25
  - rvm: default
    sudo: required
Mickaël Canévet's avatar
Mickaël Canévet committed
26
    dist: trusty
27 28
    services: docker
    env: BEAKER_set="debian-6-x86_64-docker"
29
    bundler_args:
Mickaël Canévet's avatar
Mickaël Canévet committed
30
    script: sudo service docker restart ; sleep 10 && bundle exec rspec spec/acceptance/*_spec.rb
31 32
  - rvm: default
    sudo: required
Mickaël Canévet's avatar
Mickaël Canévet committed
33
    dist: trusty
34 35
    services: docker
    env: BEAKER_set="debian-7-x86_64-docker"
36
    bundler_args:
Mickaël Canévet's avatar
Mickaël Canévet committed
37
    script: sudo service docker restart ; sleep 10 && bundle exec rspec spec/acceptance/*_spec.rb
38 39
  - rvm: default
    sudo: required
Mickaël Canévet's avatar
Mickaël Canévet committed
40
    dist: trusty
41 42
    services: docker
    env: BEAKER_set="debian-8-x86_64-docker"
43
    bundler_args:
Mickaël Canévet's avatar
Mickaël Canévet committed
44
    script: sudo service docker restart ; sleep 10 && bundle exec rspec spec/acceptance/*_spec.rb
45 46
  - rvm: default
    sudo: required
Mickaël Canévet's avatar
Mickaël Canévet committed
47
    dist: trusty
48 49
    services: docker
    env: BEAKER_set="ubuntu-12.04-x86_64-docker"
50
    bundler_args:
Mickaël Canévet's avatar
Mickaël Canévet committed
51
    script: sudo service docker restart ; sleep 10 && bundle exec rspec spec/acceptance/*_spec.rb
52 53
  - rvm: default
    sudo: required
Mickaël Canévet's avatar
Mickaël Canévet committed
54
    dist: trusty
55 56
    services: docker
    env: BEAKER_set="ubuntu-14.04-x86_64-docker"
57
    bundler_args:
Mickaël Canévet's avatar
Mickaël Canévet committed
58
    script: sudo service docker restart ; sleep 10 && bundle exec rspec spec/acceptance/*_spec.rb
59 60
  - rvm: default
    sudo: required
Mickaël Canévet's avatar
Mickaël Canévet committed
61
    dist: trusty
62 63
    services: docker
    env: BEAKER_set="centos-6-x86_64-docker"
64
    bundler_args:
Mickaël Canévet's avatar
Mickaël Canévet committed
65
    script: sudo service docker restart ; sleep 10 && bundle exec rspec spec/acceptance/*_spec.rb
66 67
  - rvm: default
    sudo: required
Mickaël Canévet's avatar
Mickaël Canévet committed
68
    dist: trusty
69 70
    services: docker
    env: BEAKER_set="centos-7-x86_64-docker"
71
    bundler_args:
Mickaël Canévet's avatar
Mickaël Canévet committed
72
    script: sudo service docker restart ; sleep 10 && bundle exec rspec spec/acceptance/*_spec.rb
73 74
notifications:
  email: false
Raphaël Pinson's avatar
Raphaël Pinson committed
75 76 77 78 79 80 81 82 83 84
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
Mickaël Canévet's avatar
Mickaël Canévet committed
85
    rvm: 2.1.7