-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ffabc9f
commit 2ced8fb
Showing
3 changed files
with
17 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,6 +69,7 @@ jobs: | |
env: | ||
COMPOSE_PROJECT_NAME: self-hosted-${{ strategy.job-index }} | ||
SENTRY_DSN: https://[email protected]/6627632 | ||
REPORT_SELF_HOSTED_ISSUES: 1 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -86,9 +87,7 @@ jobs: | |
sudo chmod +x "${{ matrix.compose_path }}/docker-compose" | ||
- name: Install self-hosted | ||
run: | | ||
export REPORT_SELF_HOSTED_ISSUES=1 | ||
./install.sh | ||
run: ./install.sh | ||
|
||
- name: Integration Test | ||
run: ./integration-test.sh --${{ matrix.test_type }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,13 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
source install/_lib.sh | ||
source install/dc-detect-version.sh | ||
|
||
echo "${_group}Setting up variables and helpers ..." | ||
export SENTRY_TEST_HOST="${SENTRY_TEST_HOST:-http:https://localhost:9000}" | ||
TEST_USER='[email protected]' | ||
TEST_PASS='test123TEST' | ||
COOKIE_FILE=$(mktemp) | ||
|
||
# Courtesy of https://stackoverflow.com/a/2183063/90297 | ||
trap_with_arg() { | ||
func="$1" | ||
shift | ||
for sig; do | ||
trap "$func $sig "'$LINENO' "$sig" | ||
done | ||
} | ||
|
||
DID_TEAR_DOWN=0 | ||
# the teardown function will be the exit point | ||
teardown() { | ||
if [ "$DID_TEAR_DOWN" -eq 1 ]; then | ||
return 0 | ||
fi | ||
DID_TEAR_DOWN=1 | ||
|
||
if [ "$1" != "EXIT" ]; then | ||
echo "An error occurred, caught SIG$1 on line $2" | ||
fi | ||
|
||
echo "Tearing down ..." | ||
rm $COOKIE_FILE | ||
echo "Done." | ||
} | ||
trap_with_arg teardown ERR INT TERM EXIT | ||
trap_with_arg cleanup ERR INT TERM EXIT | ||
echo "${_endgroup}" | ||
|
||
echo "${_group}Starting Sentry for tests ..." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters