diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-10-29 12:23:01 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-10-29 12:38:42 +0100 |
commit | 34f397fd225e94b1f4997806a8392de24b2e4a5a (patch) | |
tree | 3ce1170ffae4a2d0e3beb64cf1182a70225409ca /tests/acceptance/run-local.sh | |
parent | 95dc2ad13c4a7aaf2d5f49208c1ca2fba3a2dcc6 (diff) | |
download | nextcloud-server-34f397fd225e94b1f4997806a8392de24b2e4a5a.tar.gz nextcloud-server-34f397fd225e94b1f4997806a8392de24b2e4a5a.zip |
Link the default Apache directory to the Nextcloud server in all runners
In order to run the acceptance tests in Apache "/var/www/html" has to be
linked to the root directory of the Nextcloud server. Before this was
automatically done when launching the acceptance tests through
"./run.sh", but an explicit command was needed when run in Drone. Now
the linking was moved from "run.sh" to "run-local.sh", so it is
automatically done when run through "./run.sh" and in Drone, including
when running the tests for an app instead of for the server.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests/acceptance/run-local.sh')
-rwxr-xr-x | tests/acceptance/run-local.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/acceptance/run-local.sh b/tests/acceptance/run-local.sh index 7ae6705000c..548e9e9ceae 100755 --- a/tests/acceptance/run-local.sh +++ b/tests/acceptance/run-local.sh @@ -189,6 +189,10 @@ composer install cd ../../ +# Link the default Apache directory to the root directory of the Nextcloud +# server to make possible to run the Nextcloud server on Apache if needed. +ln --symbolic $(pwd) /var/www/html + INSTALL_AND_CONFIGURE_SERVER_PARAMETERS="" if [ "$NEXTCLOUD_SERVER_DOMAIN" != "$DEFAULT_NEXTCLOUD_SERVER_DOMAIN" ]; then INSTALL_AND_CONFIGURE_SERVER_PARAMETERS+="--nextcloud-server-domain $NEXTCLOUD_SERVER_DOMAIN" |