lib/travish.rb in travish-0.1.1 vs lib/travish.rb in travish-1.0.0

- old
+ new

@@ -7,11 +7,12 @@ def help puts "" puts "Travish - emulates the OSX experience for travis." puts "" - puts " run - Runs the .travis.yml." + puts " run - Runs the .travis.yml." + puts " script - Runs only the \"script\" portion of .travis.yml." puts "" puts " ./" end def run @@ -20,9 +21,17 @@ parser = EnvironmentParser.new(travis_file.fetch('env', {}).fetch('global', {}), ENV) run_commands(travis_file["before_install"], parser.environment_hash) run_commands(travis_file["install"], parser.environment_hash) run_commands(travis_file["before_script"], parser.environment_hash) + run_commands(travis_file["script"], parser.environment_hash) + end + + def script + validate + travis_file = default_yml.merge local_travis_yml + parser = EnvironmentParser.new(travis_file.fetch('env', {}).fetch('global', {}), ENV) + run_commands(travis_file["script"], parser.environment_hash) end # -- faffing