Databases and java pester tests (#2338)

* added mongodb postgres java tests

* fixed 1.7 and 12 Java on Ubuntu 20

* several improvments

* removed update-environment function

* add etc-environment import

* removed sourcing invoke-tests

Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
This commit is contained in:
Leonid Lapshin
2020-12-30 18:04:55 +03:00
committed by GitHub
parent 86adee10d0
commit 3753e7b923
7 changed files with 93 additions and 46 deletions

View File

@@ -33,17 +33,6 @@ apt-get install -y mysql-server
#Install MySQL Dev tools
apt install libmysqlclient-dev -y
# Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"
if ! command -v mysql; then
echo "mysql was not installed"
exit 1
fi
mysql -vvv -e 'CREATE DATABASE smoke_test' -uroot -proot
mysql -vvv -e 'DROP DATABASE smoke_test' -uroot -proot
set +e
# Disable mysql.service
systemctl is-active --quiet mysql.service && systemctl stop mysql.service
systemctl disable mysql.service