Skip to content

Commit c8c971e

Browse files
committed
Initialise spec submodule through composer
1 parent 862a2ee commit c8c971e

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

.evergreen/config/functions.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ functions:
44
- command: git.get_project
55
params:
66
directory: "src"
7-
- command: shell.exec
8-
params:
9-
working_dir: "src"
10-
script: |
11-
git submodule update --init
127
# Make an evergreen exapanstion file with dynamic values
138
- command: shell.exec
149
params:

CONTRIBUTING.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ $ composer update
1313

1414
In addition to installing project dependencies, Composer will check that the
1515
required extension version is installed. Directions for installing the extension
16-
may be found [here](https://php.net/manual/en/mongodb.installation.php).
16+
may be found [here](https://php.net/manual/en/mongodb.installation.php). Composer will also install the submodule required for
17+
running spec tests.
1718

1819
Installation directions for Composer may be found in its
1920
[Getting Started](https://getcomposer.org/doc/00-intro.md) guide.
@@ -22,11 +23,7 @@ Installation directions for Composer may be found in its
2223

2324
The library's test suite uses [PHPUnit](https://phpunit.de/), which is installed
2425
through the [PHPUnit Bridge](https://symfony.com/phpunit-bridge) dependency by
25-
Composer. To run the spec tests, initialize the corresponding Git submodule:
26-
27-
```
28-
$ git submodule update --init
29-
```
26+
Composer.
3027

3128
The test suite may be executed with:
3229

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
}
4040
},
4141
"scripts": {
42+
"pre-install-cmd": "git submodule update --init",
43+
"pre-update-cmd": "git submodule update --init",
4244
"bench": "cd benchmark && composer update && vendor/bin/phpbench run --report=aggregate",
4345
"checks": [
4446
"@check:cs",

0 commit comments

Comments
 (0)