Skip to content

Commit a8cc1c9

Browse files
committed
Initial commit
0 parents  commit a8cc1c9

11 files changed

Lines changed: 863 additions & 0 deletions

File tree

.php_cs.dist

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->in([
5+
__DIR__ . '/src',
6+
__DIR__ . '/tests',
7+
]);
8+
9+
return PhpCsFixer\Config::create()
10+
->setRules([
11+
'@PSR2' => true,
12+
])->setFinder($finder) ;

.travis.yml

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
language: php
2+
3+
stages:
4+
- pre-conditions
5+
- test
6+
- quality
7+
8+
################
9+
# Test stage #
10+
################
11+
12+
php:
13+
- 7.2
14+
- 7.3
15+
- 7.4
16+
17+
env:
18+
- COMMAND="composer install"
19+
- COMMAND="composer update"
20+
21+
before_script:
22+
- ${COMMAND}
23+
24+
script:
25+
- php vendor/bin/phpunit --no-coverage
26+
27+
jobs:
28+
fast_finish: true
29+
30+
allow_failures:
31+
- php: 7.3
32+
env: Security check (composer install)
33+
- php: 7.3
34+
env: Security check (composer update)
35+
- php: 7.3
36+
env: Psalm
37+
- php: 7.3
38+
env: PHP Codesniffer
39+
40+
include:
41+
42+
##########################
43+
# Pre-conditions stage #
44+
##########################
45+
46+
- stage: pre-conditions
47+
env: Syntax check PHP
48+
php: 7.2
49+
before_script:
50+
- composer install
51+
script:
52+
- vendor/bin/check-syntax-php.sh
53+
54+
- stage: pre-conditions
55+
env: Syntax check PHP
56+
php: 7.3
57+
before_script:
58+
- composer install
59+
script:
60+
- vendor/bin/check-syntax-php.sh
61+
62+
- stage: pre-conditions
63+
env: Syntax check PHP
64+
php: 7.4
65+
before_script:
66+
- composer install
67+
script:
68+
- vendor/bin/check-syntax-php.sh
69+
70+
- stage: pre-conditions
71+
env: Syntax check YAML / XML / JSON
72+
before_script:
73+
- composer require simplesamlphp/simplesamlphp-test-framework --dev
74+
script:
75+
- vendor/simplesamlphp/simplesamlphp-test-framework/bin/check-syntax-json.sh
76+
- vendor/simplesamlphp/simplesamlphp-test-framework/bin/check-syntax-xml.sh
77+
- vendor/simplesamlphp/simplesamlphp-test-framework/bin/check-syntax-yaml.sh
78+
79+
###################
80+
# Quality stage #
81+
###################
82+
83+
- stage: quality
84+
php: 7.3
85+
env: Security check (composer install)
86+
before_script:
87+
- composer install
88+
script:
89+
- vendor/bin/security-checker security:check
90+
91+
- stage: quality
92+
php: 7.3
93+
env: Security check (composer update)
94+
before_script:
95+
- composer update
96+
script:
97+
- vendor/bin/security-checker security:check
98+
99+
- stage: quality
100+
php: 7.3
101+
env: Codecov
102+
before_script:
103+
- composer update
104+
- php vendor/bin/phpunit
105+
script:
106+
- bash <(curl -s https://codecov.io/bash)
107+
108+
- stage: quality
109+
php: 7.3
110+
env: Psalm
111+
before_script:
112+
- composer update
113+
script:
114+
- vendor/bin/psalm
115+
- vendor/bin/psalter --issues=UnnecessaryVarAnnotation --dry-run
116+
117+
- stage: quality
118+
php: 7.3
119+
env: PHP Codesniffer
120+
before_script:
121+
- composer update
122+
script:
123+
- vendor/bin/phpcs src/
124+
125+
notifications:
126+
slack:
127+
secure: jgkeIXi7Hzkc907ZKGpuJZ9va+KjHNV0LZoWc22skkDqNIu2wshvqx4wOMFK8CXtRcRgCambtXxyTio17Q4B4mFu1uf7qVN6x18QyLNhfypB/d808kLoJCzlmGB7477jrw5xvgSVOMxWmic8QTjkcMOWSiG4fJE86zIthZP0OOY=

0 commit comments

Comments
 (0)