Skip to content

Commit

Permalink
Travis: Run in-browser tests not in devel_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Dec 31, 2019
1 parent f32b9ae commit ef0d232
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 0 additions & 1 deletion .ci/config-test.inc.php
Expand Up @@ -14,7 +14,6 @@

// Settings required by the tests

$config['devel_mode'] = true;
$config['skin'] = 'elastic';
$config['support_url'] = 'http://support.url';

12 changes: 9 additions & 3 deletions .ci/setup.sh
Expand Up @@ -4,18 +4,24 @@

set -x

DIR=$(dirname $0)
GMV=1.5.11
CHROMEVERSION=$(google-chrome-stable --version | tr -cd [:digit:]. | cut -d . -f 1)

# Roundcube tests and instance configuration
cp $DIR/config-test.inc.php $DIR/../config/config-test.inc.php
cp .ci/config-test.inc.php config/config-test.inc.php

# Make temp and logs writeable
sudo chmod 777 temp logs

# Install javascript dependencies
$DIR/../bin/install-jsdeps.sh
bin/install-jsdeps.sh

# Compile Elastic's styles
sudo apt-get install -y node-less

lessc skins/Elastic/styles/styles.less > skins/Elastic/styles/styles.css
lessc skins/Elastic/styles/print.less > skins/Elastic/styles/print.css
lessc skins/Elastic/styles/embed.less > skins/Elastic/styles/embed.css

# Install proper WebDriver version for installed Chrome browser
php tests/Browser/install.php $CHROMEVERSION
Expand Down

0 comments on commit ef0d232

Please sign in to comment.