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