bin/travis in travis-1.5.9.travis.358.4 vs bin/travis in travis-1.5.9.travis.360.4
- old
+ new
@@ -6,10 +6,14 @@
# load travis library
require 'travis/cli'
# load plugins
-config_path = ENV.fetch('TRAVIS_CONFIG_PATH') { File.expand_path('.travis', Dir.home) }
-Dir.glob(File.expand_path('*/init.rb', config_path)) { |file| load(file) }
+TRAVIS_PLUGINS = []
+config_path = ENV.fetch('TRAVIS_CONFIG_PATH') { File.expand_path('.travis', Dir.home) }
+Dir.glob(File.expand_path('*/init.rb', config_path)) do |file|
+ TRAVIS_PLUGINS << file.sub(config_path + '/', '').sub(/\/init\.rb$/, '')
+ load(file)
+end
# and off we go then
Travis::CLI.run(ARGV)