1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
Commit Graph

12 Commits

Author SHA1 Message Date
Bruce Weirdan
dabfb16e34
Test parallelization (#4045)
* Run tests in random order

Being able to run tests in any order is a pre-requisite for being able
to run them in parallel.

* Reset type coverage between tests, fix affected tests

* Reset parser and lexer between test runs and on php version change

Previously lexer was reset, but parser kept the reference to the old
one, and reference to the parser was kept by StatementsProvider. This
resulted in order-dependent tests - if the parser was first initialized
with phpVersion set to 7.4 then arrow functions worked fine, but were
failing when the parser was initially constructed with settings for 7.3

This can be demonstrated on current master by upgrading to
nikic/php-parser:4.9 and running:

```
vendor/bin/phpunit --no-coverage --filter="inferredArgArrowFunction" tests/ClosureTest.php
```

Now all tests using PHP 7.4 features must set the PHP version
accordingly.

* Marked more tests using 7.4 syntax

* Reset newline-between-annotation flag between tests

* Resolve real paths before passing them to checkPaths

When checkPaths is called from psalm.php the paths are resolved, so we
just mimicking SUT behaviour here.

* Restore newline-between-annotations in DocCommentTest

* Tweak Appveyor caches

* Tweak TravisCI caches

* Tweak CircleCI caches

* Run tests in parallel

Use `vendor/bin/paratest` instead of `vendor/bin/phpunit`

* Use default paratest runner on Windows

WrapperRunner is not supported on Windows.

* TRAVIS_TAG could be empty

* Restore appveyor conditional caching
2021-01-29 11:38:04 +01:00
Bruce Weirdan
db3072d0ba
Suppress choco install progress (#3100)
This should make appveyor logs much more readable. Currently they have
thousands of lines like
```
Progress: Downloading php 7.4.3... 98%
Progress: Downloading php 7.4.3... 98%
Progress: Downloading php 7.4.3... 98%
```
2020-04-08 09:23:24 -04:00
Bruce Weirdan
fe1cd8ecf4
Use stable composer on Appveyor (#3097)
* Use stable composer on Appveyor

Composer now ships unstable 2.x version under old URL.
See https://twitter.com/seldaek/status/1247770566045491201

* Discard changes in vendor
2020-04-08 09:04:36 -04:00
Matthew Brown
1d91719ae8
Remove --no-suggest 2020-04-08 01:25:40 -04:00
Matthew Brown
8e6aa8a07d
Only care about high for now 2019-12-02 00:11:45 -05:00
Matthew Brown
1832014521
Switch Windows build to use PHP 7.4 2019-12-01 22:10:05 -05:00
Matthew Brown
d69e8ddafa
Ignore PHP 7.1 & PHP 7.2 on Windows 2019-08-21 14:04:59 -04:00
Bruce Weirdan
0dfbf483cb Upload test results to AppVeyor (#1918)
So that it shows up in `Tests` tab, not only `Console`
2019-07-07 19:05:34 -04:00
SignpostMarv
2a08afc5b5 7.0 no longer supported (#1894) 2019-07-03 16:47:52 -04:00
SignpostMarv
d8411dc510 loading in cacert.pem-related changes from 4b5b8208a3 as recommended by @muglug 2019-04-01 16:34:44 -04:00
SignpostMarv
95ca317fdc loading in curl 2019-04-01 16:34:44 -04:00
SignpostMarv
5e4ca95bf2 adding appveyor config 2019-04-01 16:34:44 -04:00