mirror of
https://github.com/qdrant/qdrant.git
synced 2026-07-31 15:11:35 -05:00
* test: Restructure OpenAPI tests * fix: Remove cache dirs * fix: Remove cache dirs from helpers * fix: Path of openapi.json * fix: Update path of openapi tests everywhere
19 lines
462 B
Bash
Executable File
19 lines
462 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
# Ensure current path is project root
|
|
cd "$(dirname "$0")/../"
|
|
|
|
cp docs/redoc/master/openapi.json tests/openapi/openapi.json
|
|
|
|
docker buildx build --load -q ./tests/openapi/ --tag=qdrant_openapi_test
|
|
|
|
DOCKER_ARGS=$([ -t 0 ] && echo "-it" || echo "")
|
|
docker run $DOCKER_ARGS \
|
|
--rm \
|
|
--network=host \
|
|
-e OPENAPI_FILE='openapi.json' \
|
|
-v "${PWD}"/tests/openapi:/code \
|
|
qdrant_openapi_test sh -c /code/run_docker.sh
|