Skip to content

Commit

Permalink
Make 'before_install' in .travis.yml configurable
Browse files Browse the repository at this point in the history
This is needed to be able clone the puppetlabs-ruby_task_helper for
Bolt task spec tests.
  • Loading branch information
baurmatt committed Jan 13, 2020
1 parent 48bb1ff commit 7cce6d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions config_defaults.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
.travis.yml:
before_install:
- yes | gem update --system
- bundle --version
docker_sets:
docker_defaults:
# values will replace @@SET@@ with the docker_sets' value
Expand Down
7 changes: 5 additions & 2 deletions moduleroot/.travis.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ addons:
<%- end -%>
<%- end -%>
<%- end -%>
<%- if @configs['before_install'] -%>
before_install:
- yes | gem update --system
- bundle --version
<% @configs['before_install'].each do |bi| -%>
- <%= bi %>
<% end -%>
<%- end -%>
script:
- 'bundle exec rake $CHECK'
matrix:
Expand Down

0 comments on commit 7cce6d4

Please sign in to comment.