Sha256: 833c35a728375be5edfaaa0b0400148f8e5aa07f0e1d2079f78e2d719d1a326a
Contents?: true
Size: 1.1 KB
Versions: 7
Compression:
Stored size: 1.1 KB
Contents
require 'rubygems' require 'bundler' Bundler.require require 'rspec/core/rake_task' require "bundler/gem_tasks" RSpec::Core::RakeTask.new(:spec) desc "download test repo and run spec" task :default => ["test:create_repo", :spec] namespace :test do desc "download test repo" task :create_repo do dir = "fixtures/repo" unless File.directory? dir cmd = "git clone https://github.com/dima-exe/ci-worker-test-repo.git fixtures/repo" puts cmd system cmd end end end desc "run travis build" task :travis => :default namespace :print do task :script do require 'vx/message/testing' require File.expand_path("../spec/support/fixture", __FILE__) require File.expand_path("../spec/support/create", __FILE__) build = create :build configuration = create :configuration script_builder = Vx::Router::ScriptBuilder.new(build, configuration) puts "\n#===> BEGIN BEFORE SCRIPT" puts script_builder.to_before_script puts "#===> END BEFORE SCRIPT\n" puts "\n#===> BEGIN SCRIPT\n" puts script_builder.to_script puts "#===> END SCRIPT\n\n" end end
Version data entries
7 entries across 7 versions & 1 rubygems