Sha256: 7503311c95dfff8cddcd193e3e6cefef672fa56be02b2c73fe5d69ed98152018

Contents?: true

Size: 676 Bytes

Versions: 15

Compression:

Stored size: 676 Bytes

Contents

config_path = ENV.fetch('TRAVIS_CONFIG_PATH') { File.expand_path('.travis', ENV['HOME']) }
cmp_file    = File.expand_path('travis.sh', config_path)

require 'fileutils'
FileUtils.mkdir_p(config_path)
FileUtils.cp(File.expand_path('../travis.sh', __FILE__), cmp_file)

rcs    = ['.zshrc', '.bashrc'].map { |f| File.expand_path(f, ENV['HOME']) }
source = "source " << cmp_file

rcs.each do |file|
  next unless File.exist? file and File.writable? file
  next if File.read(file).include? source
  File.open(file, "a") { |f| f.puts("", "# added by travis gem", "[ -f #{cmp_file} ] && #{source}") }
end

# fake Makefile
File.open('Makefile', 'w') { |f| f.puts 'all:', 'install:' }

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
travis-1.5.7.travis.345.4 completion/extconf.rb
travis-1.5.7.travis.341.4 completion/extconf.rb
travis-1.5.7.travis.338.4 completion/extconf.rb
travis-1.5.6 completion/extconf.rb
travis-1.5.6.travis.337.4 completion/extconf.rb
travis-1.5.6.travis.336.4 completion/extconf.rb
travis-1.5.6.travis.333.4 completion/extconf.rb
travis-1.5.6.travis.332.4 completion/extconf.rb
travis-1.5.6.travis.330.4 completion/extconf.rb
travis-1.5.6.travis.329.4 completion/extconf.rb
travis-1.5.6.travis.326.4 completion/extconf.rb
travis-1.5.6.travis.324.4 completion/extconf.rb
travis-1.5.6.travis.323.4 completion/extconf.rb
travis-1.5.6.travis.320.4 completion/extconf.rb
travis-1.5.6.travis.319.4 completion/extconf.rb