Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2571769
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/.ci/config-test.inc.php b/.ci/config-test.inc.php
new file mode 100644
index 000000000..06335f45d
--- /dev/null
+++ b/.ci/config-test.inc.php
@@ -0,0 +1,19 @@
+<?php
+
+$config = array();
+
+// Database configuration
+$config['db_dsnw'] = 'sqlite:////tmp/sqlite.db?mode=0646';
+
+// Test user credentials
+$config['tests_username'] = 'test';
+$config['tests_password'] = 'test';
+
+// GreenMail
+$config['smtp_port'] = 25;
+
+// Settings required by the tests
+
+$config['skin'] = 'elastic';
+$config['support_url'] = 'http://support.url';
+
diff --git a/.ci/setup.sh b/.ci/setup.sh
new file mode 100755
index 000000000..a148ab1dc
--- /dev/null
+++ b/.ci/setup.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# The script is intended for use on Travis with Trusty distribution
+
+DIR=$(dirname $0)
+GMV=1.5.11
+
+# Roundcube tests and instance configuration
+sudo 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 \
+ && sudo 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 &
diff --git a/.travis.yml b/.travis.yml
index 75a8d6fa8..88949745c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,33 +1,38 @@
language: php
dist: trusty
sudo: false
matrix:
fast_finish: true
include:
- php: 5.4
- php: 5.5
- php: 5.6
- php: 7.0
- php: 7.1
env: CODE_COVERAGE=1
- php: 7.2
- php: 7.3
+ env: BROWSER_TESTS=1
+ addons:
+ chrome: stable
- php: 7.4
cache:
directories:
- $HOME/.composer
install:
- if [ "$CODE_COVERAGE" != 1 ]; then phpenv config-rm xdebug.ini || true; fi
- cp composer.json-dist composer.json
+ - if [ "$BROWSER_TESTS" = 1 ]; then composer require "laravel/dusk:~5.7.0" --no-update; fi
- composer remove endroid/qr-code --no-update
- composer install --prefer-dist
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
notifications:
email: false
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Mar 19, 8:59 AM (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
458545
Default Alt Text
(2 KB)
Attached To
Mode
R3 roundcubemail
Attached
Detach File
Event Timeline
Log In to Comment