diff --git a/.travis.yml b/.travis.yml index fbb59c4..0cdfce8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,8 @@ sudo: false php: - 7.1 -addons: - mariadb: '10.1' +services: + - mysql git: depth: 999999 # We can't use a shallow clone for testing. See: https://github.com/travis-ci/travis-ci/issues/4942#issuecomment-159132444 diff --git a/_travis/script.sh b/_travis/script.sh index dbf3d6b..0e4cb12 100644 --- a/_travis/script.sh +++ b/_travis/script.sh @@ -13,16 +13,3 @@ grep -q "echo 'Hello World\!'" $DOCUMENTROOT/testsite/administrator/components/c COUNT=$(mysql -uroot -s -N -e "SELECT COUNT(extension_id) FROM sites_testsite.j_extensions WHERE element = 'com_helloworld';") echo "Matched $COUNT rows\n" [ $COUNT -gt 0 ] && true || false - -echo "** Uninstalling test extension" -composer remove -v --no-update --working-dir=$DOCUMENTROOT/testsite --no-interaction joomlatools/composer-helloworld - -# Verify if component file has been removed -[ ! -f $DOCUMENTROOT/testsite/administrator/components/com_helloworld/helloworld.php ] && true || false - -# Ensure extensions table has been updated -COUNT=$(mysql -uroot -s -N -e "SELECT COUNT(extension_id) FROM sites_testsite.j_extensions WHERE element = 'com_helloworld';") -echo "Matched $COUNT rows\n" - -[ $COUNT -eq 0 ] && true || false -