File tree 3 files changed +15
-3
lines changed
3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,12 @@ Code links
38
38
39
39
To show us all features are included, you need to indicate where each feature is coded.
40
40
41
- [ ./codeLink.sh] ( documentation/codeLink.sh ) helps you to tell us.
41
+ [ ./codeLink.sh] ( documentation/codeLink.md ) helps you to tell us.
42
42
43
43
Everything is done
44
44
-
45
45
46
- When [ ./codeValidation.sh] ( documentation/codeValidation.md ) and [ ./codeLink.sh ] ( documentation/codeLink.md ) say it's good,
46
+ When [ ./codeValidation.sh] ( documentation/codeValidation.md ) and [ ./codeLink.md ] ( documentation/codeLink.md ) say it's good,
47
47
you can tell us to launch benchmarks with [ contact form] ( http://www.phpbenchmarks.com/en/contact ) .
48
48
49
49
Thank you!
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ source validation/configurationValidation.sh
6
6
function isValidUrl {
7
7
local url=$1
8
8
9
- if [ " $url " == " " ] || ([ " $ {url: 0: 7} " != " http:// " ] && [ " $ { $url0 :0: 8}" != " https://" ]) ; then
9
+ if [ " ${url: 0: 8} " != " https://" ]; then
10
10
return 1
11
11
fi
12
12
Original file line number Diff line number Diff line change @@ -3,6 +3,18 @@ Configure code links
3
3
4
4
To prove all features are coded, you need to configure ` $codeLinks ` in ` .phpbenchmarks/codeLink.sh ` .
5
5
6
+ ` $codeLinks ` contains links to your code, on ` common ` repository, for each benchmark feature.
7
+ <br >
8
+ Example for Symfony 4.0 Hello world:
9
+ ``` bash
10
+ #! /usr/bin/env bash
11
+
12
+ declare -A codeLinks=(
13
+ [controller]=" https://github.com/phpbenchmarks/symfony-common/blob/symfony_4_hello-world_prepare/Controller/HelloWorldController.php"
14
+ [route]=" https://github.com/phpbenchmarks/symfony-common/blob/symfony_4_hello-world_prepare/Resources/config/routing.yml"
15
+ )
16
+ ```
17
+
6
18
To do it easily, you can use ` ./codeLink.sh ` .
7
19
8
20
./codeLink.sh
You can’t perform that action at this time.
0 commit comments