Sha256: 65514f3fff7f573973f64b03da61fec8c3861f5c44841620f271fcc2da89323d

Contents?: true

Size: 1.29 KB

Versions: 21

Compression:

Stored size: 1.29 KB

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'ruby-debug'
require 'grit'
require 'spec/expectations'
gem 'sqlite3-ruby'

ENV["PATH"] += ":#{File.dirname(File.expand_path(__FILE__))}/../../bin"
ENV["GIT_DIR"] = nil
ENV["GIT_WORK_TREE"] = nil
ENV["GIT_INDEX_FILE"] = nil

ROOT = File.expand_path(File.dirname(__FILE__) + '/../..')

# setup fixtures
if File.exist?("/dev/shm")
  FileUtils.rm_rf "tmp"
  tmp_dir = "/dev/shm/bard_testing_tmp"
  FileUtils.rm_rf tmp_dir
  FileUtils.mkdir tmp_dir
  `ln -s #{tmp_dir} tmp`
else
  FileUtils.rm_rf "tmp"
  FileUtils.mkdir "tmp"
end

Dir.chdir 'tmp' do
  `git clone --mirror --recursive #{ROOT}/fixtures/repo origin.git`

  `git clone --bare --recursive origin.git submodule_a.git`
  `git clone --bare --recursive origin.git submodule_b.git`
  %w(development_a development_b staging production).each do |env|
    `git clone --recursive origin.git #{env}`
    Dir.chdir env do
      FileUtils.cp "config/database.sample.yml", "config/database.yml"
      `grb track master`
      `git checkout master`
      unless env == "production"
        `grb track integration`
        `git checkout integration`
      end
    end
  end
  FileUtils.mkdir "fixtures"
  Dir.foreach "." do |file|
    FileUtils.mv(file, "fixtures/") unless %w(fixtures . ..).include? file
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
bard-1.3.9 features/support/env.rb
bard-1.3.8 features/support/env.rb
bard-1.3.7 features/support/env.rb
bard-1.3.6 features/support/env.rb
bard-1.3.5 features/support/env.rb
bard-1.3.4 features/support/env.rb
bard-1.3.3 features/support/env.rb
bard-1.3.2 features/support/env.rb
bard-1.3.1 features/support/env.rb
bard-1.3.0 features/support/env.rb
bard-1.2.0 features/support/env.rb
bard-1.1.2 features/support/env.rb
bard-1.1.1 features/support/env.rb
bard-1.1.0 features/support/env.rb
bard-1.0.8 features/support/env.rb
bard-1.0.7 features/support/env.rb
bard-1.0.6 features/support/env.rb
bard-1.0.5 features/support/env.rb
bard-1.0.4 features/support/env.rb
bard-1.0.3 features/support/env.rb