Skip to content

Commit 20784a4

Browse files
committed
Merge remote-tracking branch 'origin/master' into sync-upstream
2 parents 8103781 + 7f97a9e commit 20784a4

32 files changed

+507
-5400
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ codeception.yml export-ignore
66
phpunit.xml.dist export-ignore
77
psalm.xml export-ignore
88
/tests export-ignore
9+
/tools export-ignore

.github/workflows/ci.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ jobs:
2323
php-version: ${{ matrix.php-versions }}
2424
extensions: bcmath, ctype, fileinfo, json, mbstring, dom, ldap, pdo, tokenizer, xml, mysql, sqlite
2525
coverage: xdebug
26-
- name: Downgrade phpunit for php7.2
27-
run: composer update phpunit/phpunit -W
26+
2827
- name: Update to lowest php dependencies
2928
run: composer update --prefer-lowest
3029
- name: Install php dependencies
3130
run: composer install --dev --no-interaction
3231
- name: Execute tests without coverage
33-
run: vendor/bin/phpunit --testsuite="BigBlueButton unit test suite,BigBlueButton integration test suite"
32+
run: tools/phpunit --testsuite="BigBlueButton unit test suite,BigBlueButton integration test suite"
3433

3534
PHP:
3635
name: PHP ${{ matrix.php-versions }}
@@ -53,26 +52,23 @@ jobs:
5352
php-version: ${{ matrix.php-versions }}
5453
extensions: bcmath, ctype, fileinfo, json, mbstring, dom, ldap, pdo, tokenizer, xml, mysql, sqlite
5554
coverage: xdebug
56-
- name: Downgrade phpunit for php7.2
57-
if: ${{ matrix.php-versions == '7.2' }}
58-
run: composer update phpunit/phpunit -W
5955
- name: Install php dependencies
6056
run: composer install --dev --no-interaction
6157
continue-on-error: ${{ matrix.experimental }}
6258
- name: Execute code style check via php-cs-fixer
63-
run: vendor/bin/php-cs-fixer fix --dry-run
59+
run: tools/php-cs-fixer fix --dry-run
6460
continue-on-error: ${{ matrix.experimental }}
6561
- name: Execute tests with coverage
6662
if: ${{ !matrix.experimental }}
6763
run: |
6864
mkdir -p build/logs
69-
vendor/bin/phpunit --coverage-clover=build/logs/coverage.xml --testsuite="BigBlueButton unit test suite,BigBlueButton integration test suite"
65+
tools/phpunit --coverage-clover=build/logs/coverage.xml --testsuite="BigBlueButton unit test suite,BigBlueButton integration test suite"
7066
- name: Execute tests without coverage
7167
if: ${{ matrix.experimental }}
72-
run: vendor/bin/phpunit --testsuite="BigBlueButton test suite"
68+
run: tools/phpunit --testsuite="BigBlueButton test suite"
7369
continue-on-error: true
7470
- name: Coveralls
7571
env:
7672
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7773
if: ${{ matrix.php-versions == '7.2' && env.COVERALLS_REPO_TOKEN != null }}
78-
run: vendor/bin/php-coveralls --coverage_clover=build/logs/coverage.xml -v
74+
run: tools/php-coveralls --coverage_clover=build/logs/coverage.xml -v

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,14 @@ reports
1919
# Local environment variables
2020
/.env.local
2121
/.env.*.local
22+
23+
# Composer lock file
24+
#
25+
# The library does not locks down the dependencies for several reasons:
26+
#
27+
# * In the outer world, the lock is not effective. Only the lock of the requiring application is accounted.
28+
# * It makes it hard, to run the library with its deps in the CI as when running `composer require` under PHP 8.1,
29+
# an incompatible lock file is created which is unsuable unter PHP 7.x.
30+
#
31+
# See https://github.com/littleredbutton/bigbluebutton-api-php/pull/115 for the discussion.
32+
/composer.lock

composer.json

Lines changed: 31 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"role": "Developer"
3737
},
3838
{
39-
"name": "Alfonso Rodríguez",
39+
"name": "Alfonso Rodr\u00edguez",
4040
"email": "[email protected]",
4141
"role": "Developer"
4242
},
@@ -72,56 +72,65 @@
7272
"symfony/http-client": "To use the SymfonyHttpClientTransport."
7373
},
7474
"require-dev": {
75-
"composer/composer": "^1.10.0",
76-
"phpunit/phpunit": "^8",
77-
"friendsofphp/php-cs-fixer": "2.*",
78-
"squizlabs/php_codesniffer": "3.*",
79-
"php-coveralls/php-coveralls": "^2.4.0",
80-
"brainmaestro/composer-git-hooks": "^2.8",
81-
"vimeo/psalm": "^4.5",
8275
"psr/http-client": "^1.0",
8376
"psr/http-factory": "^1.0",
8477
"psr/http-message": "^1.0",
8578
"symfony/dotenv": "^3.4|^4.0|^5.0",
8679
"symfony/http-client-contracts": "^1.1|^2.0",
8780
"symfony/http-client": "^4.4|^5.0",
8881
"symfony/process": "^3.4|^4.0|^5.0",
89-
"nyholm/psr7": "^1.4",
90-
"fakerphp/faker": "^1.14"
82+
"nyholm/psr7": "^1.4"
9183
},
9284
"autoload": {
9385
"psr-4": {
94-
"BigBlueButton\\": ["src", "tests/integration"]
86+
"BigBlueButton\\": [
87+
"src",
88+
"tests/integration"
89+
]
9590
}
9691
},
9792
"autoload-dev": {
9893
"psr-4": {
99-
"BigBlueButton\\Tests\\Functional\\": ["tests/functional"]
94+
"BigBlueButton\\Tests\\Functional\\": [
95+
"tests/functional"
96+
]
10097
}
10198
},
10299
"scripts": {
103-
"test": "vendor/bin/phpunit --testsuite=\"BigBlueButton unit test suite\"",
104-
"test-integration": "vendor/bin/phpunit --testsuite=\"BigBlueButton integration test suite\"",
105-
"test-functional": "vendor/bin/phpunit --testsuite=\"BigBlueButton functional test suite\" --exclude-group=functional-legacy",
106-
"cs-fix": "vendor/bin/php-cs-fixer fix --allow-risky=yes",
107-
"cs-test": "vendor/bin/php-cs-fixer fix --dry-run --allow-risky=yes",
100+
"test": "tools/phpunit --testsuite=\"BigBlueButton unit test suite\"",
101+
"test-integration": "tools/phpunit --testsuite=\"BigBlueButton integration test suite\"",
102+
"test-functional": "tools/phpunit --testsuite=\"BigBlueButton functional test suite\" --exclude-group=functional-legacy",
103+
"cs-fix": "tools/php-cs-fixer fix --allow-risky=yes",
104+
"cs-test": "tools/php-cs-fixer fix --dry-run --allow-risky=yes",
108105
"psalm": "psalm --threads=1",
109106
"psalm-clear": "psalm --clear-cache && psalm --clear-global-cache",
110107
"psalm-fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
111-
"post-install-cmd": "vendor/bin/cghooks add --ignore-lock",
112-
"post-update-cmd": "vendor/bin/cghooks update"
108+
"post-install-cmd": "tools/composer-git-hooks add --ignore-lock",
109+
"post-update-cmd": "tools/composer-git-hooks update"
113110
},
114111
"extra": {
115112
"hooks": {
116113
"pre-commit": [
117-
"vendor/bin/php-cs-fixer fix --dry-run --allow-risky=yes"
114+
"tools/php-cs-fixer fix --dry-run --allow-risky=yes"
118115
],
119116
"pre-push": [
120-
"vendor/bin/phpunit --testsuite=\"BigBlueButton unit test suite,BigBlueButton integration test suite\"",
121-
"vendor/bin/psalm --threads=1"
117+
"tools/phpunit --testsuite=\"BigBlueButton unit test suite,BigBlueButton integration test suite\"",
118+
"tools/psalm --threads=1"
122119
],
123120
"post-merge": "composer install",
124121
"post-checkout": "composer install"
122+
},
123+
"cotor": {
124+
"brainmaestro/composer-git-hooks": "^2.8",
125+
"extensions": {
126+
"phpunit/phpunit": {
127+
"fakerphp/faker": "^1.14"
128+
}
129+
},
130+
"friendsofphp/php-cs-fixer": "^3.7",
131+
"php-coveralls/php-coveralls": "^2.4",
132+
"phpunit/phpunit": "^8",
133+
"vimeo/psalm": "^4.22"
125134
}
126135
}
127136
}

0 commit comments

Comments
 (0)