Skip to content
This repository
Newer
Older
100644 26 lines (17 sloc) 0.483 kb
d5c05426 »
2012-06-28 .travis.yml: .gemspec is needed to install local gem
1 #
2
3 require 'pathname'
4 require 'fileutils'
5
6 envname_default_task = 'BIORUBY_RAKE_DEFAULT_TASK'
7
8 gem_dir = Pathname.new(File.join(File.dirname(__FILE__), '..')).realpath
9
10 case t = ENV[envname_default_task]
11 when 'gem-test'
12 # do nothing
13 else
14 $stderr.print "#{$0}: skipped: ENV[#{envname_default_task}]=#{t.inspect}\n"
15 exit(0)
16 end
17
18 $stderr.puts "cd #{gem_dir}"
19 Dir.chdir(gem_dir)
20
21 args = [ 'bioruby.gemspec', '.gemspec' ]
22
23 $stderr.puts(['cp', *args].join(" "))
24 FileUtils.cp(*args)
25
Something went wrong with that request. Please try again.