Sha256: 27977a449409ada9f1cdda30fe9d45fb5fc2ac6f05f9e1af476ca359784a39c8

Contents?: true

Size: 626 Bytes

Versions: 18

Compression:

Stored size: 626 Bytes

Contents

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

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

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

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", source) }
end

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
travis-1.5.6.travis.317.4 completion/extconf.rb
travis-1.5.6.travis.315.4 completion/extconf.rb
travis-1.5.6.travis.314.4 completion/extconf.rb
travis-1.5.6.travis.312.4 completion/extconf.rb
travis-1.5.6.travis.307.4 completion/extconf.rb
travis-1.5.6.travis.306.4 completion/extconf.rb
travis-1.5.6.travis.304.4 completion/extconf.rb
travis-1.5.6.travis.303.4 completion/extconf.rb
travis-1.5.6.travis.301.4 completion/extconf.rb
travis-1.5.6.travis.299.4 completion/extconf.rb
travis-1.5.6.travis.297.4 completion/extconf.rb
travis-1.5.6.travis.296.4 completion/extconf.rb
travis-1.5.5 completion/extconf.rb
travis-1.5.4 completion/extconf.rb
travis-1.5.3 completion/extconf.rb
travis-1.5.2 completion/extconf.rb
travis-1.5.1 completion/extconf.rb
travis-1.5.0 completion/extconf.rb