1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-11 16:59:45 +01:00
Commit Graph

53 Commits

Author SHA1 Message Date
645e9afba2 Fix circleCI builds 2023-11-22 15:27:19 +01:00
Tinjo Schöni
466bda088b
Fix Phar build failure
The issue was likely caused by Composer 2.6.4 making the autoloader generation (more) reproducible (composer/composer#11663)

We can either try to change the generated autoloader with an autoloader suffix, or just change the Psalm root directory for the smoke test. The latter approach seems easier. :P
2023-11-21 01:22:02 +01:00
Thomas Bley
1e1ffe164f #10026 keep running phpcs and php lint with 7.4 2023-07-21 22:50:24 +02:00
Thomas Bley
5affc125e8 #10026 run phpcs and phar-build with php 8.0 in circle-ci (php 7.4 is out of official support) 2023-07-21 21:48:28 +02:00
kkmuffme
2a6ff76cb3 set phpcs memory limit in circle ci (suggested number, no idea if that's enough) 2023-06-07 08:45:42 +02:00
Bruce Weirdan
85bb112f8e Update phar-build to large resource class in config.yml 2023-03-06 05:36:02 -04:00
Bruce Weirdan
c1d2e5618a
Set vimeo/psalm version explicitly 2022-12-01 19:59:51 -04:00
azjezz
d47c0140ed chore: enable psl tests again
Signed-off-by: azjezz <azjezz@protonmail.com>
2022-02-21 00:08:15 +02:00
Matthew Brown
efb1464183 Add PHP 8.1 image 2022-02-08 11:55:43 -05:00
Matthew Brown
58cd0dae2e Bump test-with-real-projects PHP version 2022-02-08 11:53:51 -05:00
Bruce Weirdan
1c15a6a36c
Disable PSL as not yet compatible with Psalm 5 2022-01-03 09:25:06 +02:00
orklah
655d17ca53 add PSL back to CI 2021-11-06 11:27:26 +01:00
Matthew Brown
73b5c9fb41
Remove PSL from CircleCI tests until it's fixed upstream 2021-11-04 09:28:18 -04:00
orklah
545ff4648f persist worspace for other jobs 2021-07-18 20:01:38 +02:00
orklah
8d6360c47a reintroduce composer cache 2021-07-18 20:00:12 +02:00
orklah
cd6586e723 remove attached workspace 2021-07-18 17:46:44 +02:00
orklah
172faad609 report needed command on next job 2021-07-18 16:23:50 +02:00
orklah
ab78e62e0e fix syntax 2021-07-18 16:21:06 +02:00
orklah
7b024aa2d6 remove self analyse from CI jobs 2021-07-18 16:16:52 +02:00
Matthew Brown
f6e4fb1263
Analyse real projects with PHP 8.0 2021-05-13 09:34:32 -04:00
Matt Brown
6e9003a28b Add collections checks again 2021-04-18 19:22:03 -04:00
Matthew Brown
93e9054f98
Remove collections 2021-04-13 00:02:01 -04:00
Matt Brown
07897456e3 Back to 7.4 2021-03-22 19:53:42 -04:00
Matt Brown
b02b684a06 Run on real projects on latest PHP 2021-03-22 19:48:31 -04:00
Matt Brown
61c4bedcff Fix Circle build 2021-02-22 10:36:40 -05:00
Matt Brown
33c4c50652 Remove tests from CircleCI run 2021-02-22 09:18:11 -05:00
Matthew Brown
0b2c62de50
Remove ProxyManager run 2021-01-25 22:04:29 -05:00
Matthew Brown
6ebc9ae8c6 Bump circleci image version 2020-12-29 12:33:11 +00:00
Matthew Brown
aadc52fda1
Bump circle PHP version 2020-10-26 15:26:39 -04:00
Matthew Brown
42c9f017f9
Experiment with PHP 7.1 compatibility (#4421)
* Experiment with PHP 7.1 compatibility

* Let’s hop
2020-10-26 15:14:48 -04:00
Matthew Brown
85ea3be0ab
Remove --diff-methods 2020-10-18 23:30:43 -04:00
Brown
92239add4d Add some backwards-incompatible changes for 4.x 2020-08-30 11:44:14 -04:00
Bruce Weirdan
1cf5153700
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
2020-08-23 10:32:07 -04: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