Skip to content

Commit 7f8e9db

Browse files
committed
ref: Use constant for the SDK version
docs: Update README.md & CONTRIBUTING.md (#650) * docs: Update README.md & CONTRIBUTING.md * Add slogan test: Add dsn to e2e test config (#657) * test: Add dsn to e2e test config * Add phpstan exclusion Fix Symfony 6 deprecations in E2E test (#656) fix: Update span ops (#655) docs: Update changelog (#658) Prepare release 4.3.1 (#659) Update phpstan.neon Add bump-version.sh
1 parent 669afc9 commit 7f8e9db

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

.craft.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ minVersion: 0.23.1
22
changelogPolicy: simple
33
artifactProvider:
44
name: none
5-
preReleaseCommand: ''
65
targets:
76
- name: github
87
- name: registry

phpstan.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ parameters:
1616
- src/Tracing/Doctrine/DBAL/TracingDriverForV2.php
1717
- src/Tracing/HttpClient/TraceableHttpClientForV4.php
1818
- src/Tracing/HttpClient/TraceableHttpClientForV5.php
19+
- src/Tracing/HttpClient/TraceableResponseForV4.php
20+
- src/Tracing/HttpClient/TraceableResponseForV5.php
1921
- tests/End2End/App
2022
- tests/Tracing/Doctrine/DBAL/TracingDriverForV2Test.php
2123
- tests/EventListener/Fixtures/UserWithoutIdentifierStub.php

scripts/bump-version.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
set -eux
3+
4+
# if [ "$(uname -s)" != "Linux" ]; then
5+
# echo "Please use the GitHub Action."
6+
# exit 1
7+
# fi
8+
9+
SCRIPT_DIR="$( dirname "$0" )"
10+
cd $SCRIPT_DIR/..
11+
12+
OLD_VERSION="${1}"
13+
NEW_VERSION="${2}"
14+
15+
echo "Current version: $OLD_VERSION"
16+
echo "Bumping version: $NEW_VERSION"
17+
18+
function replace() {
19+
! grep "$2" $3
20+
perl -i -pe "s/$1/$2/g" $3
21+
grep "$2" $3 # verify that replacement was successful
22+
}
23+
24+
replace "SDK_VERSION = '[0-9.]+'" "SDK_VERSION = '$NEW_VERSION'" ./src/SentryBundle.php

0 commit comments

Comments
 (0)