Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/.ci
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2019-12-30 16:45:17 +0300
committerAleksander Machniak <alec@alec.pl>2019-12-30 16:45:17 +0300
commitf32b9ae51df4964c97e75ff120eba7f5ff8f0926 (patch)
treed6bf96a24d30a49bb18e28bb3060aad86c74c86a /.ci
parent581bc6886bdae85fd17d401f98556066383791a0 (diff)
Travis: Move install commands to .ci/install.sh
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/install.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/.ci/install.sh b/.ci/install.sh
new file mode 100755
index 000000000..37d21fb9c
--- /dev/null
+++ b/.ci/install.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+# The script is intended for use on Travis with Trusty distribution
+
+set -x
+
+DIR=$(dirname $0)
+
+# Enable xdebug for code coverage
+if [ "$CODE_COVERAGE" != 1 ]; then phpenv config-rm xdebug.ini || true; fi
+
+cd $DIR/..
+
+cp composer.json-dist composer.json
+
+# Add laravel/dusk for Browser tests
+if [ "$BROWSER_TESTS" = 1 ]; then composer require "laravel/dusk:~5.7.0" --no-update; fi
+
+# Remove qr-code as it requires php-gd which is not always available on Travis
+# and we don't really need it for tests
+composer remove endroid/qr-code --no-update
+
+# Install PHP dependencies
+composer install --prefer-dist