diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-07-14 01:41:55 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-07-14 03:04:23 +0900 |
commit | ac2866005b96baf986072f86ecd3dfd887f2bda3 (patch) | |
tree | 4ebae6da80b9488ad81ea36d75d6b701c17e6d8a /.travis.yml | |
parent | 69a66e8a8b492610eba77123de44e97d25012a41 (diff) | |
download | ruby-ac2866005b96baf986072f86ecd3dfd887f2bda3.tar.gz |
Add empty depend file if extconf.rb only exists
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index c4ee4d7069..03f110702e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -345,6 +345,17 @@ env: before_install: install: before_script: + - |- + ruby -e 'new = [] + Dir.glob("ext/**/extconf.rb") {|ex| + unless File.exist?(dep = File.dirname(ex)+"/depend") + puts "Adding "+dep + File.copy_stream("template/depend.tmpl", dep) + new << dep + end + } + exec("git", "add", *new) unless new.empty?' + - git diff --cached - "> config.status" - "> .rbconfig.time" - sed -f tool/prereq.status template/Makefile.in common.mk > Makefile |