End-to-end publish test using examples from docs (#199)
This commit is contained in:
parent
774a0df592
commit
4f5e85b510
1 changed files with 1041 additions and 919 deletions
22
tests/integration/run.sh
Executable file
22
tests/integration/run.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
cleanup() {
|
||||
echo "========== registry logs =========="
|
||||
docker logs registry || true
|
||||
echo "=========== cleaning up ==========="
|
||||
docker compose down -v
|
||||
}
|
||||
|
||||
go build -o ./bin/publisher ./tools/publisher
|
||||
|
||||
docker build -t registry --build-arg GO_BUILD_TAGS=noauth .
|
||||
|
||||
trap cleanup EXIT
|
||||
|
||||
export MCP_REGISTRY_GITHUB_CLIENT_ID=fake
|
||||
export MCP_REGISTRY_GITHUB_CLIENT_SECRET=fake
|
||||
docker compose -f docker-compose.yml -f tests/integration/docker-compose.integration-test.yml up --wait --wait-timeout 60
|
||||
|
||||
go run tests/integration/main.go
|
||||
Loading…
Reference in a new issue