summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-14 01:41:55 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-14 03:04:23 +0900
commitac2866005b96baf986072f86ecd3dfd887f2bda3 (patch)
tree4ebae6da80b9488ad81ea36d75d6b701c17e6d8a /.travis.yml
parent69a66e8a8b492610eba77123de44e97d25012a41 (diff)
Add empty depend file if extconf.rb only exists
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml11
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