From d56985379db67ce899ba6e5479caebed8cd74d03 Mon Sep 17 00:00:00 2001 From: Steven Rombauts Date: Mon, 25 Sep 2017 14:56:37 +0100 Subject: [PATCH] #35: Remove uninstall tests Uninstall is broken at the moment and requires more work in ticket #36 --- .travis.yml | 4 ++-- _travis/script.sh | 13 ------------- 2 files changed, 2 insertions(+), 15 deletions(-) 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 -