Skip to content

Commit

Permalink
Merge pull request #631 from baurmatt/travis/before_install
Browse files Browse the repository at this point in the history
Make 'before_install' in .travis.yml configurable
  • Loading branch information
ghoneycutt authored Jan 13, 2020
2 parents 48bb1ff + 7cce6d4 commit c6c6ae2
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 c6c6ae2

Please sign in to comment.