Commit Graph

35 Commits

Author SHA1 Message Date
Andreas Braun
6887226d34 PHPC-1709: Add typing information to arginfo (#1337)
* Add missing macros for declaring arguments

* Add macros to define disabled constructor and __wakeup

* Define arginfo via stubs for BSON classes

* Declare tentative return types in interfaces

* Add correct return type for __set_state methods

* Generate class entries for BSON classes

* Declare Binary class constants in stub file

* Use stubs in exception classes

* Add stubs for monitoring classes

* Fix wrong JsonSerializable class in BSON stubs

* Disable declaration-after-statement

This is necessary to let the generated arginfo files compile

* Use stubs for driver classes

* Fix deprecation messages in tests

* Add missing macro

* Fix tests relying on value injection

* Parse parameters in disabled constructor/wakup function

* Add note about arginfo files to contribution docs

* Add GitHub action to check generated arginfo files

* PHPC-2115: Use DateTimeInterface in UTCDateTime constructor signature

* Don't install mongodb extension in GitHub actions workflows

* Change indentation in stub files

* Use individual #if conditions for each stub method

* Make disabled constructor/wakeup methods static

* Fix bulkWrite parameter name

* Use %d to match property count in tests

* Ensure all classes with disabled serialisation declare __wakeup
2022-08-03 08:42:07 +02:00
Jeremy Mikola
677aa5c7d2 PHPC-1935: Add .dep files to .gitignore 2021-08-06 15:49:14 -04:00
Andreas Braun
37408e1ccf Merge branch 'v1.9'
* v1.9:
  PHPC-1739 Move from travis-ci to GitHub Actions (#1199)
  PHPC-1774 Fix truncation of PHP_VERSION constant in handshake metadata (#1202)
  PHPC-1775 Use correct size for strncpy in when initialising DBPointer (#1203)
2021-02-23 14:52:15 +01:00
Andreas Braun
ed31cba5cb PHPC-1739 Move from travis-ci to GitHub Actions (#1199)
* Add GitHub Action workflow for tests

* Add workflow to check formatting

* Remove travis-ci config

* Fix clang-format error

* Add shared json extension for tests

* Hide output for xfail tests

* Use mongo-orchestration configs from drivers-evergreen-tools

* Drop obsolete test scripts

This drops the legacy VM environment and remnants of the travis-ci config

* Remove obsolete server_id config

* Add note about MONGO_ORCHESTRATION_URI to contribution docs

* Restore previous XFAIL behaviour

This did not have the expected effect of preventing diff output for tests that expect failures, so it can be reverted.

* Make SSL certificate path configurable for tests

Since mongo-orchestration will always bring its own certificates, we need to set the correct SSL certificate directory for our tests. This is skipped on GitHub Actions as we don't test SSL builds there (yet). If SSL_DIR was not set, tests requiring SSL will be skipped.

* Fix code review nits
2021-02-23 14:49:54 +01:00
Andreas Braun
032af9a8ef PHPC-1529: Reset libmongocrypt key vault client after forking (#1189)
* PHPC-1529: Reset libmongocrypt key vault client after forking

* Run ping command instead of find

* Update wrong comment

* Only run tests when libmongocrypt is present

* Add mongocryptd.pid to gitignore

* Fix test failures due to missing mongocryptd
2021-01-20 19:30:39 +01:00
Andreas Braun
9618edff2a PHPC-1060: Run Atlas connectivity tests on Evergreen 2020-03-25 13:19:33 +01:00
Derick Rethans
cee996bc79 Add preliminary Evergreen Config 2019-02-14 15:35:30 -05:00
Jeremy Mikola
28c717be47 Do not ignore files within .travis.scripts/
If a directory is excluded, a negation on the files within it (e.g. "!dir/*") has no effect. Since .travis.scripts/ is excluded by ".*", we need to negate the directory itself to ensure the files within are tracked.
2018-01-22 12:01:47 -05:00
Jeremy Mikola
b1a669010a Do not ignore nested "build" directories 2018-01-19 17:29:18 -05:00
Jeremy Mikola
e011cb0c08 Merge branch 'v1.2' 2017-09-07 11:24:55 -04:00
Jeremy Mikola
47b24a333c Ignore configure.ac for PHP 7.2 2017-09-07 11:23:45 -04:00
Jeremy Mikola
0654afff02 Remove references to Composer and PHPUnit 2017-02-10 15:56:12 -05:00
Jeremy Mikola
994781050b PHPC-584: Remove MkDocs documentation
PHP.net is the canonical source of all extension documentation.
2016-10-26 09:56:52 -04:00
Jeremy Mikola
020fc44c87 GitHub issue and PR templates 2016-08-29 15:21:34 -04:00
Jeremy Mikola
3a54c35978 Remove make target for generating release notes from Git logs 2016-08-02 15:57:20 -04:00
Derick Rethans
0742722bbd Added some more phpt test leftovers to .gitignore 2015-12-08 16:49:54 +00:00
Hannes Magnusson
74ba68a513 Ignore coverage files 2015-03-26 14:23:43 -07:00
Hannes Magnusson
55ff6ba5cd ignore mongodb*tgz release files and "failed.txt" from run-tests 2015-03-24 09:30:14 -07:00
Hannes Magnusson
01d4f92313 Reorganize Vagrantfile to make room for more images 2014-12-18 18:00:17 -08:00
Hannes Magnusson
a940ebbf58 ignore ctags and local vimrc 2014-12-17 12:49:37 -08:00
Hannes Magnusson
795d061014 PHON-5: Whopsy, missing file for startting servers hidden by gitignore 2014-12-16 12:58:40 -08:00
Hannes Magnusson
e78eea3970 PHP-1324: Embed phongo-crud tests under 'testunit' and 'testall' targets 2014-12-09 16:06:26 -08:00
Hannes Magnusson
6ebe3bcb26 Commit the release notes 2014-12-04 09:35:38 -08:00
Hannes Magnusson
a276e33394 Initial documentation
Using markdown and mkdocs ( $ pip install mkdocs )
2014-12-03 16:17:32 -08:00
Hannes Magnusson
5c289b8cfd Ignore the run-tests php.ini 2014-11-25 16:32:26 -08:00
Hannes Magnusson
f90650fe20 Ignore generated files 2014-11-25 15:14:04 -08:00
Jeremy Mikola
d6f181710f Use Faker to create user data fixtures 2014-10-16 16:02:26 -04:00
Hannes Magnusson
917fa04c71 Missed a file 2014-08-12 06:15:41 +00:00
Hannes Magnusson
9c87738021 submodule mongo-c-driver and libbson and build it into phongo 2014-08-12 06:06:48 +00:00
Hannes Magnusson
69c8580f1a Improve ignore paths 2014-07-21 18:14:30 +00:00
Jeremy Mikola
563fcefc35 Remove *.php from gitignore 2014-07-11 15:06:00 -04:00
Jeremy Mikola
1d1fb513b8 Add phpt files to gitignore 2014-07-08 14:37:22 -04:00
Hannes Magnusson
43ac18491e ignore test files 2014-07-02 20:50:32 +00:00
Hannes Magnusson
feecb7111c Add .gitignore 2014-06-19 14:15:31 -07:00
Hannes Magnusson
153be68a1d Add basic .gitignore 2014-05-06 16:17:32 -07:00