1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-12 17:27:28 +01:00
Commit Graph

175 Commits

Author SHA1 Message Date
kkmuffme
2c5645c466 use branch name to randomize tests to ensure test dependencies will error 2023-11-29 08:56:31 +01:00
29ac774b01 Fix 2023-11-22 15:35:48 +01:00
kkmuffme
2c6aa77baf fix CI "split" unevenly splits the number of tests 2023-11-18 13:31:37 +01:00
orklah
ed94de5146 fix offset for type param changes 2023-05-21 18:56:54 +02:00
Bruce Weirdan
62e7e7f470
Reorganize pushes to psalm/phar
Previously we built phar and pushed it:

 1. To `psalm/phar:master` (always)
 2. To `psalm/phar:$tag` (for tagged releases)

However it's entirely possible to tag branches that diverged from master
(like when we do a patch release for a legacy version). In this case our
push to `psalm/phar:master` was rejected and script failed. As a result,
`psalm/phar` was missing the tag (release).

Now we will either:
 * push to `psalm/phar:master` (if the build was for `vimeo/psalm:master`)
 * or push to `psalm/phar:$tag` (if it's a tagged release)
2023-02-24 21:47:11 -04:00
Jack Worman
1c19260cdd Require trailing commas 2022-12-18 13:20:31 -06:00
Jack Worman
9ce31a7709 Re-add short closure sniff 2022-12-16 17:02:10 -06:00
cca276768e
List refactoring v5 (#8820)
* Squash

* Remove BC break

* Suppress

* Possibly fix

* Fixes

* Fix test

* Trigger build

* Update psl

* Update psl

* Fixes

* Fixes

* Cleanup

* fix

* Fix build

* Do not consider never when getting the max count

* Add assertion

* Cleanup

* Fix

* Cleanup
2022-12-13 21:40:19 +01:00
Bruce Weirdan
5cbe241493
Disable parallel PHAR build
This is an attempt to fix CirleCI issue in this build:
https://app.circleci.com/pipelines/github/weirdan/psalm/666/workflows/33476cb1-d753-4e2d-b067-a5c92808d725/jobs/2457
2022-11-26 00:36:47 -04:00
Bruce Weirdan
683fe2f4c6
Bake version data into PHAR file
Compatibility between `ocramius/package-versions`,
`composer/package-versions-deprecated`, `composer-runtime-api` and
`humbug/box` (with `humbug/scoper` further complicating things)has been
always a problematic area. So instead of trying to keep up with all the
changes in all of those packages, we will now bake the version data (for
the packages we need) into the PHAR file itself.

Fixes vimeo/psalm#7606
Fixes vimeo/psalm#5399
2022-11-26 00:00:43 -04:00
Matthew Brown
8d36bdc3ed
Make array shapes strict by default (#8701)
* Make array shapes strict by default

* Fix PSL tests
2022-11-11 20:14:21 -05:00
0038387252 Fix PSL e2e tests 2022-11-10 17:10:46 +01:00
Christian Schiffler
a8f2b2b85a Skip sub directories when parsing stubs
We now have the extensions in a sub directory and therefore have to skip
that one.
2022-07-04 11:36:32 +02:00
Christian Schiffler
631936c678 Skip classes in stub files when generating property map 2022-06-29 09:23:45 +02:00
Christian Schiffler
9cb9b1ef9e Do not convert the file list to array 2022-06-29 09:23:45 +02:00
Christian Schiffler
5fd2090526 Add update script and update property map
See #7983
2022-06-29 09:23:45 +02:00
azjezz
d47c0140ed chore: enable psl tests again
Signed-off-by: azjezz <azjezz@protonmail.com>
2022-02-21 00:08:15 +02:00
orklah
e6d491a4ab Merge remote-tracking branch 'upstream/master' into upstream-master7 2022-02-12 10:01:08 +01:00
orklah
24ae96b373 remove usage of totallyTyped internally 2022-02-12 09:51:06 +01:00
sasezaki
88dbfc7c00 Added Composer\Audoload\ClassLoader, it is soft dependency symbol 2022-02-11 22:51:31 +01:00
AndrolGenhald
a69e63533b Fix code style. 2022-01-12 15:33:26 -06:00
AndrolGenhald
ceb5644d5b Add script to generate issues.md. 2022-01-12 15:22:21 -06:00
Bruce Weirdan
1ae2bff5ff
Speed up Windows tests
Enable multiple workers for Windows, just like we do on Linux already.
2021-12-30 14:30:06 +02:00
Bruce Weirdan
b664d5820a
Use psalm forks of end-to-end SUTs 2021-12-26 09:52:27 +02:00
Bruce Weirdan
2141dfe3b2
Workaround for PHPUnit process isolation issue with composer 2.2
This skips composer-generated proxy binaries, thus avoiding the issue
introduced by composer 2.2
2021-12-23 22:44:49 +02:00
ralila
245920e53c Import instead of using fqn 2021-12-03 20:11:20 +01:00
azjezz
9bd6289ce5 chore(ci): update psl version used in e2e tests
Signed-off-by: azjezz <azjezz@protonmail.com>
2021-11-06 09:07:39 +01:00
Bruce Weirdan
79b86301eb
Strip refs/tags/ as well 2021-08-09 03:08:34 +03:00
Bruce Weirdan
7bca90e7bf
Portable bin/test-with-real-projects.sh
This replaces hardcoded paths to Psalm with dynamically built ones and
thus allows to run `bin/test-with-real-projects.sh` locally.
2021-07-15 00:43:45 +03:00
Bruce Weirdan
4794da0fa0
Switched PSL test to Psalm's fork 2021-07-09 23:58:37 +03:00
Bruce Weirdan
5e5c956b7a
Fetch entire Psl repo 2021-07-04 21:26:05 +03:00
Bruce Weirdan
040d528d59
Use psalm/endtoend-test-phpunit
Fixes vimeo/psalm#6044
2021-07-04 20:40:50 +03:00
Saif Eddin Gmati
931a4b44f1
typo (#5523) 2021-03-30 11:54:22 -04:00
Matt Brown
150e35f782 Add config file 2021-03-29 15:09:14 -04:00
Matt Brown
ae1fd44b13 Resolve build issues 2021-03-22 19:37:49 -04:00
Bruce Weirdan
a284933c43
Be even less quiet about git errors (#5309) 2021-03-02 22:25:37 -05:00
Bruce Weirdan
217b49a8a8
Fix suppressed phar build error (#5304)
This fixes the log noise due to `cp` syntax error. Possibly it will also
cause phar signatures to be available on `psalm/phar`.
2021-03-01 22:49:52 -05:00
Matthew Brown
15a9eece13
Fix tagger 2021-02-13 16:45:13 -05:00
Matthew Brown
ff689ccb0b
Don't push master 2021-02-11 14:06:10 -05:00
Matthew Brown
d6cdfbbe2b
Rename travis-deploy-phar.sh to github-deploy-phar.sh 2021-02-11 13:45:22 -05:00
Matthew Brown
423c83072f
Update Phar deployment to work with GitHub Actions 2021-02-11 13:45:04 -05:00
Barney Laurance
156690d46c
Make max_used_shortcode_script executable (#5133) 2021-01-31 11:50:55 -05:00
Matt Brown
ae172b2c04 Removing proxymanager from test-with-real-projects for the time being 2021-01-24 15:00:21 -05:00
Matt Brown
1ea49e0544 Fix composer location 2021-01-24 14:42:36 -05:00
Matt Brown
34fe82caad Add intl extension for composer install 2021-01-24 14:14:19 -05:00
Ben Davies
53afd2857d
Split unit test over multiple jobs in GitHub Actions, lowering the total run time (#4985)
* Split unit test over multiple jobs in GitHub Actions, lowering the total run time

* rename FileManipulationTest to FileManipulationTestCase so it does not run as a standalone Test
2021-01-11 17:30:33 -05:00
Matt Brown
ca2e51b3a9 Fix case for echo 2021-01-11 15:19:37 -05:00
Matthew Brown
51f0c58f3b Fix signing 2021-01-11 15:15:14 -05:00
Matt Brown
74c0bd3c19 Try siginig again 2021-01-11 15:05:16 -05:00
Matt Brown
e176786882 Use expliit key id 2021-01-11 14:58:30 -05:00