Sha256: 91dce58e7e234003a53b411e1b1efb6090640e250f5d899f68673a5fe0308011

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

Contents

#!/bin/bash

gem uninstall generic_app
DIR_GENERIC_APP=$PWD
DIR_PARENT="${PWD%/*}" 
mkdir -p log

echo "**************"
echo "bundle install"
bin/setup >/dev/null

echo "*************************"
echo "BEGIN TESTING generic_app"
rake 2>&1 | tee $DIR_GENERIC_APP/log/generic_app.txt
echo "FINISHED TESTING generic_app"
echo "****************************"

echo '************'
echo 'BEGIN TEST 1'
echo 'Creating new Rails app'

cd $DIR_PARENT/tmp1 && sh test_app.sh 2>&1 | tee $DIR_GENERIC_APP/log/tmp1.txt 
echo 'FINISHED TEST 1'
echo '***************'

echo '************'
echo 'BEGIN TEST 2'
echo 'Adding Generic App features to legacy Rails app'

cd $DIR_PARENT/tmp2 && sh test_app.sh 2>&1 | tee $DIR_GENERIC_APP/log/tmp2.txt 
echo 'FINISHED TEST 2'
echo '***************'



echo
echo '***********************************'
echo 'The locations of the test logs are:'
echo "TEST 1 (new app): $DIR_GENERIC_APP/tmp1.txt"
echo "TEST 2 (legacy app): $DIR_GENERIC_APP/tmp2.txt"
echo
echo "If all went well, the results at the end of each test show 0 or 31m0 failures and 0 errors."
echo

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
generic_app-1.0.1 gem_test.sh
generic_app-1.0.0 gem_test.sh