UNPKG

721 Bapplication/x-shView Raw
1#!/bin/bash
2set -e
3
4here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
5cd "$here"
6
7docker-compose -f .ci/doc/docker-compose.yml pull
8docker-compose -f .ci/doc/docker-compose.yml run doc-tests node index
9EXIT=$?
10docker-compose -f .ci/doc/docker-compose.yml down
11
12docker-compose -f .ci/doc/docker-compose.yml up -d kuzzle
13
14until $(curl --output /dev/null --silent --head --fail http://localhost:7512); do
15 printf '.'
16 sleep 5
17done
18
19cd ${here}/doc/6/getting-started/.react
20yarn install
21SKIP_PREFLIGHT_CHECK=true yarn start &
22npm run test
23
24cd ${here}/doc/6/getting-started/.vuejs
25npm ci
26npm run serve-standalone &
27npm run test
28
29cd ${here}
30docker-compose -f .ci/doc/docker-compose.yml down
31
32exit $EXIT
33
\No newline at end of file