Skip to content

Commit

Permalink
#35: Add more logging statemetns
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Rombauts committed Sep 25, 2017
1 parent f06f727 commit 997d114
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion _travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@
set -e

echo "** Installing test extension"
composer require -v --working-dir=$DOCUMENTROOT/testsite --no-interaction joomlatools/composer-helloworld:dev-testbranch
composer require -vv --working-dir=$DOCUMENTROOT/testsite --no-interaction joomlatools/composer-helloworld:dev-testbranch

# Verify if component file is present
echo "** Looking for helloworld.php"
FILE="$DOCUMENTROOT/testsite/administrator/components/com_helloworld/helloworld.php"
if [ "$REPO" == "platform" ]; then
FILE="$DOCUMENTROOT/testsite/app/administrator/components/com_helloworld/helloworld.php"
fi

echo "** Verifying helloworld.php contents"
[ -f $DOCUMENTROOT/testsite/administrator/components/com_helloworld/helloworld.php ] && true || false
grep -q "echo 'Hello World\!'" $DOCUMENTROOT/testsite/administrator/components/com_helloworld/helloworld.php && true || false

# Test if the row exists in the database
echo "** Verifying extensions row in database"
DB="sites_testsite.j_extensions"
if [ "$REPO" == "platform" ]; then
DB="sites_testsite.extensions"
Expand Down

0 comments on commit 997d114

Please sign in to comment.