Skip to content

Commit ae57eba

Browse files
committed
deps: fix too eager .gitignore
Signed-off-by: Arthur Schiwon <[email protected]>
1 parent 73e6a98 commit ae57eba

File tree

7 files changed

+645
-1
lines changed

7 files changed

+645
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
3rdparty/vendor/onelogin/php-saml/endpoints/
88

99
build
10-
vendor
10+
/vendor
1111
composer.lock

3rdparty/vendor/composer/InstalledVersions.php

Lines changed: 396 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?php return array(
2+
'root' => array(
3+
'name' => '__root__',
4+
'pretty_version' => 'dev-master',
5+
'version' => 'dev-master',
6+
'reference' => '45a48167d4580feeb1bd655a6e1e1fea69880f7e',
7+
'type' => 'library',
8+
'install_path' => __DIR__ . '/../../',
9+
'aliases' => array(),
10+
'dev' => false,
11+
),
12+
'versions' => array(
13+
'__root__' => array(
14+
'pretty_version' => 'dev-master',
15+
'version' => 'dev-master',
16+
'reference' => '45a48167d4580feeb1bd655a6e1e1fea69880f7e',
17+
'type' => 'library',
18+
'install_path' => __DIR__ . '/../../',
19+
'aliases' => array(),
20+
'dev_requirement' => false,
21+
),
22+
'firebase/php-jwt' => array(
23+
'pretty_version' => 'v4.0.0',
24+
'version' => '4.0.0.0',
25+
'reference' => 'dccf163dc8ed7ed6a00afc06c51ee5186a428d35',
26+
'type' => 'library',
27+
'install_path' => __DIR__ . '/../firebase/php-jwt',
28+
'aliases' => array(),
29+
'dev_requirement' => false,
30+
),
31+
'onelogin/php-saml' => array(
32+
'pretty_version' => '3.8.1',
33+
'version' => '3.8.1.0',
34+
'reference' => '3b6b661015c1d847a0e8cb82ca07636ccbb6cf18',
35+
'type' => 'library',
36+
'install_path' => __DIR__ . '/../onelogin/php-saml',
37+
'aliases' => array(),
38+
'dev_requirement' => false,
39+
),
40+
'robrichards/xmlseclibs' => array(
41+
'pretty_version' => '3.1.4',
42+
'version' => '3.1.4.0',
43+
'reference' => 'bc87389224c6de95802b505e5265b0ec2c5bcdbd',
44+
'type' => 'library',
45+
'install_path' => __DIR__ . '/../robrichards/xmlseclibs',
46+
'aliases' => array(),
47+
'dev_requirement' => false,
48+
),
49+
),
50+
);
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
// platform_check.php @generated by Composer
4+
5+
$issues = array();
6+
7+
if (!(PHP_VERSION_ID >= 50400)) {
8+
$issues[] = 'Your Composer dependencies require a PHP version ">= 5.4.0". You are running ' . PHP_VERSION . '.';
9+
}
10+
11+
if ($issues) {
12+
if (!headers_sent()) {
13+
header('HTTP/1.1 500 Internal Server Error');
14+
}
15+
if (!ini_get('display_errors')) {
16+
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
17+
fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
18+
} elseif (!headers_sent()) {
19+
echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
20+
}
21+
}
22+
throw new \RuntimeException(
23+
'Composer detected issues in your platform: ' . implode(' ', $issues)
24+
);
25+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# This workflow will install PHP dependencies, run tests and lint with a variety of PHP versions
2+
# For more information see: https://github.com/marketplace/actions/setup-php-action
3+
4+
name: php-saml 3.x package
5+
6+
on:
7+
push:
8+
branches: [ 3.* ]
9+
pull_request:
10+
branches: [ 3.* ]
11+
12+
jobs:
13+
test:
14+
runs-on: ${{ matrix.operating-system }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
operating-system: ['ubuntu-latest']
19+
php-versions: [5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
20+
steps:
21+
- name: Setup PHP, with composer and extensions
22+
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
23+
with:
24+
php-version: ${{ matrix.php-versions }}
25+
extensions: mbstring, intl, mcrypt, xml
26+
tools: composer:v2
27+
ini-values: post_max_size=256M, max_execution_time=180
28+
coverage: xdebug2
29+
30+
- name: Set git to use LF
31+
run: |
32+
git config --global core.autocrlf false
33+
git config --global core.eol lf
34+
- uses: actions/checkout@v2
35+
36+
- name: Validate composer.json and composer.lock
37+
run: composer validate
38+
39+
- name: Install Composer dependencies
40+
run: |
41+
composer self-update
42+
composer install --prefer-source --no-interaction
43+
- name: Syntax check PHP
44+
run: |
45+
php vendor/bin/phpcpd --exclude tests --exclude vendor .
46+
php vendor/bin/phploc src/.
47+
mkdir -p tests/build/dependences
48+
php vendor/bin/pdepend --summary-xml=tests/build/logs/dependence-summary.xml --jdepend-chart=tests/build/dependences/jdepend.svg --overview-pyramid=tests/build/dependences/pyramid.svg src/.
49+
50+
- name: PHP Code Sniffer
51+
run: php vendor/bin/phpcs --standard=tests/ZendModStandard src/Saml2 demo1 demo2 endpoints tests/src
52+
53+
- name: Run unit tests
54+
run: vendor/bin/phpunit --verbose --debug
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
tests-legacy:
7+
name: PHP ${{ matrix.php-versions }} Tests
8+
runs-on: ${{ matrix.operating-system }}
9+
strategy:
10+
matrix:
11+
operating-system: ['ubuntu-latest']
12+
php-versions: ['5.4', '5.5', '5.6']
13+
14+
steps:
15+
- uses: shivammathur/setup-php@v2
16+
with:
17+
php-version: ${{ matrix.php-versions }}
18+
extensions: openssl
19+
tools: phpunit:4.8
20+
21+
- uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Run tests
26+
run: phpunit --coverage-clover clover.xml tests
27+
28+
- uses: codecov/codecov-action@v2
29+
with:
30+
token: ${{ secrets.CODECOV_TOKEN }}
31+
files: ./clover.xml
32+
33+
tests-older:
34+
name: PHP ${{ matrix.php-versions }} Tests
35+
runs-on: ${{ matrix.operating-system }}
36+
strategy:
37+
matrix:
38+
operating-system: ['ubuntu-latest']
39+
php-versions: ['7.0', '7.1']
40+
41+
steps:
42+
- uses: shivammathur/setup-php@v2
43+
with:
44+
php-version: ${{ matrix.php-versions }}
45+
extensions: openssl
46+
tools: phpunit:6.5
47+
48+
- uses: actions/checkout@v3
49+
with:
50+
fetch-depth: 0
51+
52+
- name: Run tests
53+
run: phpunit --coverage-clover clover.xml tests
54+
55+
- uses: codecov/codecov-action@v2
56+
with:
57+
token: ${{ secrets.CODECOV_TOKEN }}
58+
files: ./clover.xml
59+
60+
tests-old:
61+
name: PHP ${{ matrix.php-versions }} Tests
62+
runs-on: ${{ matrix.operating-system }}
63+
strategy:
64+
matrix:
65+
operating-system: ['ubuntu-latest']
66+
php-versions: ['7.2', '7.3', '7.4']
67+
68+
steps:
69+
- uses: shivammathur/setup-php@v2
70+
with:
71+
php-version: ${{ matrix.php-versions }}
72+
extensions: openssl
73+
tools: phpunit:8.5
74+
75+
- uses: actions/checkout@v3
76+
with:
77+
fetch-depth: 0
78+
79+
- name: Run tests
80+
run: phpunit --coverage-clover clover.xml tests
81+
82+
- uses: codecov/codecov-action@v2
83+
with:
84+
token: ${{ secrets.CODECOV_TOKEN }}
85+
files: ./clover.xml
86+
87+
tests:
88+
name: PHP ${{ matrix.php-versions }} Tests
89+
runs-on: ${{ matrix.operating-system }}
90+
strategy:
91+
matrix:
92+
operating-system: ['ubuntu-latest']
93+
php-versions: ['8.0', '8.1']
94+
95+
steps:
96+
- uses: shivammathur/setup-php@v2
97+
with:
98+
php-version: ${{ matrix.php-versions }}
99+
extensions: openssl
100+
tools: phpunit/phpunit:9.5
101+
102+
- uses: actions/checkout@v3
103+
with:
104+
fetch-depth: 0
105+
106+
- name: Run tests
107+
run: phpunit --coverage-clover clover.xml tests
108+
109+
- uses: codecov/codecov-action@v2
110+
with:
111+
token: ${{ secrets.CODECOV_TOKEN }}
112+
files: ./clover.xml
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.5/phpunit.xsd">
2+
<filter>
3+
<whitelist addUncoveredFilesFromWhitelist="false">
4+
<directory suffix=".php">src</directory>
5+
</whitelist>
6+
</filter>
7+
</phpunit>

0 commit comments

Comments
 (0)