You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common.sh
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,8 @@ function definePhpComponentConfigurationValues {
108
108
sed -i -e "s~____PHPBENCHMARKS_PHP_7_3_ENABLED____~$PHPBENCHMARKS_PHP_7_3_ENABLED~g"$phpFile
109
109
110
110
sed -i -e "s~____PHPBENCHMARKS_BENCHMARK_URL____~$PHPBENCHMARKS_BENCHMARK_URL~g"$phpFile
111
-
sed -i -e "s~____PHPBENCHMARKS_SLUG____~$PHPBENCHMARKS_SLUG~g"$phpFile
111
+
112
+
sed -i -e "s~____PHPBENCHMARKS_COMPONENT_SLUG____~$PHPBENCHMARKS_COMPONENT_SLUG~g"$phpFile
112
113
113
114
sed -i -e "s~____PHPBENCHMARKS_DEPENDENCY_NAME____~$PHPBENCHMARKS_DEPENDENCY_NAME~g"$phpFile
114
115
sed -i -e "s~____PHPBENCHMARKS_DEPENDENCY_MAJOR_VERSION____~$PHPBENCHMARKS_DEPENDENCY_MAJOR_VERSION~g"$phpFile
@@ -141,7 +142,7 @@ function validateBranchName {
141
142
echoValidationWarning "Branch names are not validated. Don't forget to remove '--repositories-not-created' parameter when repositories will be created."
142
143
else
143
144
local gitBranch=$(cd $INSTALLATION_PATH&& git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' -e 's/(//g' -e 's/)//g')
144
-
local expectedGitBranch="$PHPBENCHMARKS_SLUG"_"$PHPBENCHMARKS_DEPENDENCY_MAJOR_VERSION.$PHPBENCHMARKS_DEPENDENCY_MINOR_VERSION"_"$RESULT_TYPE_SLUG"
145
+
local expectedGitBranch="$PHPBENCHMARKS_COMPONENT_SLUG"_"$PHPBENCHMARKS_DEPENDENCY_MAJOR_VERSION.$PHPBENCHMARKS_DEPENDENCY_MINOR_VERSION"_"$RESULT_TYPE_SLUG"
145
146
if [ $VALIDATE_DEV==true ];then
146
147
expectedGitBranch=$expectedGitBranch"_prepare"
147
148
fi
@@ -177,9 +178,9 @@ function assertReadMe {
177
178
178
179
local oldIFS=$IFS
179
180
IFS=
180
-
local validReadMeContent=$(cat validation/mainRepository/README.md)
0 commit comments