This repository was archived by the owner on Sep 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy path.travis.yml.erb
More file actions
73 lines (73 loc) · 1.91 KB
/
.travis.yml.erb
File metadata and controls
73 lines (73 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#This file is generated by ModuleSync, do not edit.
---
sudo: false
language: ruby
cache: bundler
script: <%= @configs['script'] %>
<% if @configs['env'] -%>
env:
<% if @configs['env']['global'] -%>
global:
<% @configs['env']['global'].each do |env| -%>
- <%= env %>
<% end -%>
<% end -%>
<% if @configs['env']['matrix'] -%>
matrix:
<% @configs['env']['matrix'].each do |env| -%>
- <%= env %>
<% end -%>
<% end -%>
<% end -%>
matrix:
fast_finish: true
include:
<% if @configs['supported_oss'][@configs[:puppet_module]].include?('linux') -%>
<% if @configs['docker_sets'] -%>
<% @configs['docker_sets'].each do |set| -%>
<% job = @configs['docker_defaults'].merge(set['options'] || {}) -%>
- rvm: <%= job['rvm'] %>
<% job.keys.sort.each do |k| -%>
<% next if k == 'rvm' -%>
<%= k %>: <%= job[k].gsub(/@@SET@@/, set['set']) %>
<% end -%>
<% end -%>
<% end -%>
<% end -%>
<% @configs['includes'].each do |job| -%>
- rvm: <%= job['rvm'] %>
<% job.keys.sort.each do |k| -%>
<% next if k == 'rvm' -%>
<%= k %>: <%= job[k] %>
<% end -%>
<% end -%>
<% if @configs['extras'] -%>
<% @configs['extras'].each do |job| -%>
- rvm: <%= job['rvm'] %>
<% job.keys.sort.each do |k| -%>
<% next if k == 'rvm' -%>
<%= k %>: <%= job[k] %>
<% end -%>
<% end -%>
<% end -%>
<% if @configs['allow_failures'] -%>
allow_failures:
<% @configs['allow_failures'].each do |job| -%>
- rvm: <%= job['rvm'] %>
<% job.keys.sort.each do |k| -%>
<% next if k == 'rvm' -%>
<%= k %>: <%= job[k] %>
<% end -%>
<% end -%>
<% end -%>
notifications:
email: false
<% if @configs['hipchat'] -%>
hipchat:
rooms:
secure: <%= @configs['hipchat'] %>
template:
- ! '%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}'
- ! 'Change view: %{compare_url}'
- ! 'Build details: %{build_url}'
<% end -%>