mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:51:50 +00:00
27 lines
692 B
Bash
Executable File
27 lines
692 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
source ./testing/tools/integration_runner.sh || exit 1
|
|
|
|
tarball="$1"
|
|
image_name="$2"
|
|
|
|
gqltest="$3"
|
|
|
|
url="http://localhost:$PORT"
|
|
|
|
# Backend integration tests uses a specific GITHUB_TOKEN that is available as GHE_GITHUB_TOKEN
|
|
# because it refers to our internal GitHub enterprise instance used for testing.
|
|
GITHUB_TOKEN="$GHE_GITHUB_TOKEN"
|
|
export GITHUB_TOKEN
|
|
|
|
ALLOW_SINGLE_DOCKER_CODE_INSIGHTS="true"
|
|
export ALLOW_SINGLE_DOCKER_CODE_INSIGHTS
|
|
|
|
run_server_image "$tarball" "$image_name" "$url" "$PORT"
|
|
|
|
echo "--- integration test ./dev/gqltest -long (only TestSubRepoPermissions)"
|
|
"$gqltest" -test.run TestSubRepoPermissions -long -base-url "$url"
|
|
|
|
echo "--- done"
|