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

runLocal.sh « cypress - github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e3b277113e2ca3186925963f53ad76ae4a08046e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

export CYPRESS_baseUrl=http://localhost:8081/index.php
export APP_SOURCE=$PWD/..

function finish {
	docker-compose down
}
trap finish EXIT

docker-compose up -d

npm install --no-save wait-on
$(npm bin)/wait-on -i 500 -t 240000 $CYPRESS_baseUrl || (cd cypress && docker-compose logs && exit 1)
docker-compose exec -T nextcloud bash /var/www/html/apps/text/cypress/server.sh

(cd .. && $(npm bin)/cypress $@)