Sha256: c9beb77a577eaae8c3987134fae0a335e0b3bded92bb992bbce7db8edcdcb923

Contents?: true

Size: 695 Bytes

Versions: 10

Compression:

Stored size: 695 Bytes

Contents

namespace :ci do
    
  # default is probably right for integrity.
  desc "Create symlink to database.yml. Set DB_YAML_PATH to set the target of the link. Default is ../../shared/radiant/config/database.yml"
  task :configure do
    dbpath = ENV['DB_YAML_PATH'] || "#{Rails.root}/../../shared/radiant/config/database.yml"
    system("ln -s #{dbpath} #{Rails.root}/config/database.yml") unless File.exist?("#{Rails.root}/config/database.yml")
  end

  desc "Migrate-and-test task suitable for continuous integration"
  task :build do
    RAILS_ENV = ENV['RAILS_ENV'] = 'test'
    ['ci:configure', 'db:migrate', 'cucumber:ok', 'spec'].each do |task|
      Rake::Task[task].invoke
    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
radiant-1.0.0.rc2 lib/tasks/ci.rake
radiant-1.0.0.rc1 lib/tasks/ci.rake
radiant-rails3-0.1 lib/tasks/ci.rake
radiantcms-couchrest_model-0.1.4 lib/tasks/ci.rake
radiantcms-couchrest_model-0.1.3 lib/tasks/ci.rake
radiantcms-couchrest_model-0.1.2 lib/tasks/ci.rake
radiantcms-couchrest_model-0.1.1 lib/tasks/ci.rake
radiantcms-couchrest_model-0.1 lib/tasks/ci.rake
radiant-0.9.1 lib/tasks/ci.rake
radiant-0.9.0.rc2 lib/tasks/ci.rake