Travis: Try to debug why in-browser tests do not work

pull/7135/head
Aleksander Machniak 5 years ago
parent 9d1e4b4828
commit 15885055ca

@ -10,7 +10,6 @@ cp $DIR/config-test.inc.php $DIR/../config/config-test.inc.php
# In-Browser tests dependencies installation
# and GreenMail server setup and start
sudo apt-get -y install default-jre-headless \
&& wget http://central.maven.org/maven2/com/icegreen/greenmail-standalone/$GMV/greenmail-standalone-$GMV.jar \
wget http://central.maven.org/maven2/com/icegreen/greenmail-standalone/$GMV/greenmail-standalone-$GMV.jar \
&& (sudo java -Dgreenmail.setup.all -Dgreenmail.users=test:test -jar greenmail-standalone-$GMV.jar &) \
&& sleep 5

@ -32,7 +32,7 @@ install:
script:
- if [ "$CODE_COVERAGE" = 1 ]; then CODE_COVERAGE_ARGS="--coverage-text"; fi; vendor/bin/phpunit -c tests/phpunit.xml $CODE_COVERAGE_ARGS
- if [ "$BROWSER_TESTS" = 1 ]; then .ci/setup.sh && vendor/bin/phpunit -c tests/Browser/phpunit.xml; fi
- if [ "$BROWSER_TESTS" = 1 ]; then .ci/setup.sh && vendor/bin/phpunit -v -c tests/Browser/phpunit.xml; fi
notifications:
email: false

@ -49,6 +49,12 @@ class bootstrap
$rcmail = rcmail::get_instance();
$dsn = rcube_db::parse_dsn($rcmail->config->get('db_dsnw'));
passthru('ls -l ' . INSTALL_PATH . 'config');
passthru('cat ' . INSTALL_PATH . 'config/config-test.inc.php');
passthru('ls -l /tmp');
print_r($dsn);
die;
if ($dsn['phptype'] == 'mysql' || $dsn['phptype'] == 'mysqli') {
// drop all existing tables first
$db = $rcmail->get_dbh();

Loading…
Cancel
Save