Jordi Boggiano
96486d81cb
Fix many PHPStan issues and update baseline
3 years ago
Jordi Boggiano
ffd62795bc
Get rid of all the ->at() mock invocations
3 years ago
Jordi Boggiano
2a771dfb2d
Update PHPUnit to 8.5
3 years ago
Jérôme Tamarelle
f0060b7f56
Use web URLs for Gitlab support metadata ( #10377 )
3 years ago
Martin Herndl
d51c7685da
Add types to `Repository` tests ( #10227 )
3 years ago
Jordi Boggiano
c3c6969cf5
Type annotations
3 years ago
Brad Jones
dd625669e8
Introduce gitlab-protocol option to force the gitlab repos to use https or git protocol ( #9401 )
3 years ago
Jordi Boggiano
f946d8eb5a
More RemoteFilesystem usage removals and some repository/vcs driver refactorings
6 years ago
Jordi Boggiano
713bc4de1d
Minor fixes and updated the rest of the code/tests to use HttpDownloader
6 years ago
Gabriel Caruso
2a13bb2649
Fixes from PHPStan ( #7687 )
...
* fix docblocks
* remove redundant conditional
* fix wrong variable name
* fix wrong namespaces
* add missing private members
* remove unused/redundant arguments
* move testcase class
* exclude TestCase.php
* Tweak RuleWatchGraph type hints
* Tweak doc comment
6 years ago
Jordi Boggiano
c8aea719b1
CS fixes
7 years ago
Renoir Boulanger
9f723ba381
Support GitLab repositories w/ port over HTTPs
...
When we have self-hosted GitLab, over HTTPs, on a different port.
rel composer/composer#6894
7 years ago
Mikk Tendermann
2a89d37651
fix gitlab not telling visibilty if user is not logged in
7 years ago
Jordi Boggiano
e33d00f98e
Fix gitlab tests
7 years ago
Jordi Boggiano
a6c4fb2dcf
Fix gitlab tests
7 years ago
Jordi Boggiano
c89f6338c2
CS tweaks, refs #6592
7 years ago
Helmut Januschka
ae42e4f8a3
php 5
7 years ago
Helmut Januschka
bc4a7834ba
php 5 being php5 :/
7 years ago
Helmut Januschka
b847270d08
rename test method
7 years ago
Helmut Januschka
b486056066
add tests for gitlab paging
7 years ago
Jordi Boggiano
6832eacb01
Update GitLab API usage to v4, fixes #6453
7 years ago
Martin Hasoň
88ec172bd8
Fix CS
7 years ago
Jordi Boggiano
a6627d55b7
Fix build
7 years ago
Jordi Boggiano
ce56fc4ab6
Merge pull request #6381 from deeky666/pass-vsc-driver-options
...
Forward GitLab driver options to remote filesystem
7 years ago
Steve Müller
1d29fa04b1
forward GitLab driver options to remote filesystem
8 years ago
Rob Bast
e2eb8f2201
support for gitlab subgroups, closes #6349
8 years ago
Jordi Boggiano
be201924cd
Revert "Changes the query string parameter `sha` to `ref` to reflect the GitLab API"
...
Fixes #6344 , refs #6198
This reverts commit 8a496cd2a7
.
8 years ago
Jordi Boggiano
122e422682
CS fixes
8 years ago
Sjoerd Adema
8a496cd2a7
Changes the query string parameter `sha` to `ref` to reflect the GitLab API
...
Updated the unit test to reflect the change
Fixes #6198
8 years ago
Jordi Boggiano
f200343cf2
Fix gitlab driver issues not asking for auth when token is missing, and not falling back properly to git driver
8 years ago
Jordi Boggiano
f3d0e4660d
Fix urlencoding of gitlab dots, fixes #6064
8 years ago
ianlet
5874132857
return https url of the repository given gitlab project is public
8 years ago
Jordi Boggiano
1818b95149
CS fixes
9 years ago
Rob Bast
adf3b956d0
try to use unique test directories
...
any tests that use the filesystem should have their own unique directory, as we run our test suite in parallel and
cleanup of tests (removing directories) should not interfere with currently running tests
9 years ago
Rob Bast
c292122791
it looks like php 5.3.3 might not have openssl extension?
9 years ago
Jaapio
df92cb09ab
extract regex to const. To be able to reuse it
9 years ago
Jaapio
b471440ea0
Adds support for gitlab install in subfolder
...
Since gitlab can be hosted on any url also subdirectories should be
supported. (e.g https://mycompany.com/gitlab ).
This supports only http and https protocols since the gitlab api url
is derived from the package repository url. And the ssh protocol doesn't
support folders this way.
9 years ago
Jérôme Tamarelle
4255db9e31
Allows SSH urls for gitlab and detect the scheme
...
SSH urls uses HTTPS to request the API
9 years ago
Jérôme Tamarelle
c1edfbb65c
Add tests on GitLabDriver
...
Add an interactive prompt for gitlab token
Update doc for gitlab-domains
Add tests on GitLabDriver::supports
Update doc + CS
Optimize branch detection + fix typos
Fix test on GitLab support as it depends on SSL
Remove useless method + fix repository URL containing .git
10 years ago
Henrik Bjørnskov
782c6303bc
Initial GitLab Driver
...
This is a proof of concept, and mostly done to gather feedback on the
structure of the driver and to see if this is something that Composer
should include in core.
Various review changes based on Stof comments.
* Remove cleanup() as it is implemented by the abstract class.
* Remove wrong comment in getReferences
* Implement getSource (as GitHubDriver does)
* Finish phpDocs for methods.
10 years ago