Sha256: 5f91242714111952c55f5715f9f03a8932ee1b9d92a16c07fa5baf664326b3ff

Contents?: true

Size: 875 Bytes

Versions: 4

Compression:

Stored size: 875 Bytes

Contents

#!/bin/bash -e

rake="bundle exec rake"

cd spec/dummy

# Bring in the initializer

if [ $SPEC_GROUP == 'non_primary_database' ]
then
  echo 'Testing non primary database install'
  cp config/database-non_primary.yml config/database.yml
  cp app/models/other/base.rb.sample app/models/other/base.rb
  cp config/initializers/naf.rb.non_primary config/initializers/naf.rb
  $rake naf:install:migrations
  $rake naf:isolate:migrations
  $rake db:create:all
  $rake naf:db:migrate
  $rake naf:janitor:infrastructure
  $rake naf:db:test:clone_structure
else
  echo 'Testing primary database install'
  cp config/database-primary.yml config/database.yml
  cp config/initializers/naf.rb.primary config/initializers/naf.rb
  $rake naf:install:migrations
  $rake db:create
  $rake db:migrate
  $rake naf:janitor:infrastructure
  $rake db:test:clone_structure
fi

cd ../..

$rake spec

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
naf-2.1.13 ci/travis.sh
naf-2.1.12 ci/travis.sh
naf-2.1.11 ci/travis.sh
naf-2.1.10 ci/travis.sh