blob: e71359fb93e7a44d97fe27c2c1d199375a326675 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#!/usr/bin/env bash
OC_PATH=../../../
OCC=${OC_PATH}occ
SCENARIO_TO_RUN=$1
HIDE_OC_LOGS=$2
APP_NAME=richdocuments
INSTALLED=$($OCC status | grep installed: | cut -d " " -f 5)
if [ "$INSTALLED" == "true" ]; then
$OCC app:enable $APP_NAME
else
if [ "$SCENARIO_TO_RUN" != "setup_features/setup.feature" ]; then
echo "Nextcloud instance needs to be installed" >&2
exit 1
fi
fi
composer install
composer dump-autoload
curl -v http://collabora:9980/hosting/capabilities
PORT=8080
php -S localhost:$PORT -t $OC_PATH &
PHPPID=$!
echo $PHPPID
#export BEHAT_PARAMS="context[parameters][base_url]=https://nextcloud.local.dev.bitgrid.net"
$OCC config:app:set richdocuments wopi_url --value="http://collabora:9980"
$OCC config:app:set richdocuments public_wopi_url --value="http://collabora:9980"
vendor/bin/behat
RESULT=$?
kill $PHPPID
echo "runsh: Exit code: $RESULT"
exit $RESULT
|