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