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

25 Commits

Author SHA1 Message Date
Matthew Brown
5a5a355336
Bump circle PHP version 2021-01-29 11:44:33 +01:00
Matthew Brown
831bcdc057
Experiment with PHP 7.1 compatibility (#4421)
* Experiment with PHP 7.1 compatibility

* Let’s hop
2021-01-29 11:44:32 +01:00
Matthew Brown
d03ff1d2af
Remove --diff-methods 2021-01-29 11:39:59 +01:00
Brown
c96ba8d1f5
Add some backwards-incompatible changes for 4.x 2021-01-29 11:38:48 +01:00
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
Saif Eddin G
ee8619f7bb
Test with PHP-Standard-Library (#3768) 2020-07-07 17:12:07 -04:00
Brown
41e6ef6455 Remove reference to coverage 2020-04-18 16:58:52 -04:00
Brown
eb08e101fb Remove coverage because it’s often too slow 2020-04-18 16:58:21 -04:00
Bruce Weirdan
95bc9603be
Added coverage upload to coveralls.io (#3078)
* Added coverage upload to coveralls.io

* Commented out the step that generated wrong link
2020-04-05 22:38:30 -04:00
Bruce Weirdan
7f5580d326
Run every project as separate step (#3076)
It's easier to see which project is failing this way
2020-04-05 20:25:50 -04:00
Barney Laurance
4a4c0f1362 Clarify documentation of --diff and --diff-methods (#2680)
* Clarify documentation of --diff and --diff-methods

* Save Psalm cache in CircleCI
2020-01-25 10:50:11 -05:00
Marco Pivetta
b26c57237f Ensure BC of API, compat with roave/you-are-using-it-wrong, completeness of composer.json (#2140)
* Test against `roave/you-are-using-it-wrong`

* Added CI step to ensure BC of declared API

* Added step to ensure `composer.json` has all used deps

* Including CI check tools as dev dependencies

* Typo fix: s/backwards/backward

* Run `roave/backward-compatibility-check` off an isolated location with no other dependencies

* Run `test-with-real-projects` task with PHP 7.4 as base runtime

* Run `testing-with-real-projects` also against `ocramius/proxy-manager`

`ocramius/proxy-manager` is an extremely heavy `vimeo/psalm` consumer,
and relies on a lot of the templated types system to generate real
types for proxies produced by runtime evaluation.
2020-01-01 13:55:33 -05:00
Matthew Brown
6716c35f88
Add PHPUnit back 2019-09-14 15:49:01 -04:00
Matthew Brown
aec64c1a39 Remove circleci build step properly 2019-08-26 00:45:40 -04:00
Matthew Brown
d57e4dc01c Remove PHPUnit end-to-end test for now 2019-08-26 00:44:11 -04:00
Barney Laurance
ff6eae3d59 Show link to coverage & phar circle CI artifacts (fixes #1919 ) (#1928)
* Show link to coverage

* Simplify outputing coverage report link

* Display link to PHAR download
2019-07-10 15:43:17 -04:00
Barney Laurance
049b148ec2 Remove non-working mutation coverage step from CircleCI config (#1850)
Also simplifying the PHPUnit with coverage step to stop collecting data
required for mutation testing
2019-06-27 11:52:23 -04:00
Barney Laurance
22ae114baa Add PHPCS job to CircleCI workflow (#1807) 2019-06-17 21:17:44 -04:00
Barney Laurance
5ab5ec261c Speed up CircleCI build (#1805)
* Use multiple threads to speed up psalm self analysis in CicleCi

* Use non-zero exit code when pcntl needed and not loaded

* Merge install and static analysis jobs in CircleCI

Saves about 20 seconds of 'spin up environment' time
2019-06-17 16:42:47 -04:00
Barney Laurance
3d650edbc0 Use two threads for mutation testing 2019-06-16 09:04:56 -04:00
Barney Laurance
ea5e2dd75f Only mutate covered lines of code when running mutation testing 2019-06-16 09:04:56 -04:00
Barney Laurance
10e58b9f91 Fix test result storage for dispaly at CircleCI 2019-06-16 09:04:56 -04:00
Barney Laurance
3a4e608ca9 Infection is failing with message "Received 'killed' signal". Not sure why. 2019-06-16 09:04:56 -04:00
Barney Laurance
4e3a208ec3 Add circleci config file 2019-06-16 09:04:56 -04:00
Matthew Brown
485d007f13 Add simple CircleCI config for debugging 2019-06-15 18:08:18 -04:00