Skip to content

Commit c85ef9a

Browse files
authored
Merge pull request drupalauth#94 from drupalauth/v2-dev
2 parents 84494d2 + c975009 commit c85ef9a

26 files changed

+283
-220
lines changed

Diff for: .editorconfig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Editor configuration normalization
2+
# @see http://editorconfig.org/
3+
4+
# This is the top-most .editorconfig file; do not search in parent directories.
5+
root = true
6+
7+
# All files.
8+
[*]
9+
end_of_line = LF
10+
indent_style = space
11+
indent_size = 4
12+
charset = utf-8
13+
trim_trailing_whitespace = true
14+
insert_final_newline = true
15+
16+
[{*.yml,*yaml}]
17+
indent_size = 2

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
composer.phar
22
/vendor/
33
composer.lock
4+
.bash_history
5+
/.phpunit.result.cache

Diff for: .lando.env

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Lando specific - uses user home directory to store Composer cache and other stuff
2+
# Helps to re-use Composer cache between projects.
3+
COMPOSER_HOME=/user/.composer
4+
# https://xdebug.org/docs/step_debug
5+
# https://xdebug.org/docs/step_debug#client_host
6+
# https://docs.lando.dev/config/php.html#configuration
7+
PHP_IDE_CONFIG=serverName=drupalauth.lndo.site
8+
# Ignore commands starting with space and duplicates.
9+
HISTCONTROL=ignoreboth
10+
HOME=/app

Diff for: .lando.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: drupalauth
2+
3+
services:
4+
php80:
5+
type: php:8.0
6+
via: cli
7+
xdebug: "off"
8+
composer_version: 2
9+
php81:
10+
type: php:8.1
11+
via: cli
12+
xdebug: "off"
13+
composer_version: 2
14+
php82:
15+
type: php:8.2
16+
via: cli
17+
xdebug: "off"
18+
composer_version: 2
19+
20+
21+
22+
23+
env_file:
24+
- .lando.env
25+
26+
tooling:
27+
style-lint:
28+
cmd: ./scripts/style-lint.sh
29+
service: :service
30+
options:
31+
service:
32+
default: php80
33+
describe: Run phpcs in different service
34+
alias:
35+
- s
36+
style-fix:
37+
cmd: ./scripts/style-fix.sh
38+
service: :service
39+
options:
40+
service:
41+
default: php80
42+
describe: Run phpcs in different service
43+
alias:
44+
- s
45+
phpunit:
46+
cmd: ./scripts/phpunit.sh
47+
service: :service
48+
options:
49+
service:
50+
default: php80
51+
describe: Run phpunit in different service
52+
alias:
53+
- s

Diff for: .travis.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
os: linux
12
language: php
2-
php:
3-
- '7.1'
4-
- '7.2'
5-
- '7.3'
6-
- '7.4'
7-
- '8.0'
3+
jobs:
4+
include:
5+
- php: '8.0'
6+
dist: focal
7+
- php: '8.1'
8+
dist: jammy
9+
- php: '8.2'
10+
dist: jammy
811

912
before_script: composer install
1013
script:

Diff for: composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
}
2222
],
2323
"require": {
24-
"php": "^5.6.0|^7.0|^8.0",
25-
"simplesamlphp/simplesamlphp": "~2.0",
24+
"php": "^8.0",
25+
"simplesamlphp/simplesamlphp": "^2.1",
2626
"simplesamlphp/composer-module-installer": "~1.0"
2727
},
2828
"require-dev": {
29-
"phpunit/phpunit": "^5|^6|^7|^8|^9",
30-
"squizlabs/php_codesniffer": "^2.0.0|^3.0.0"
29+
"phpunit/phpunit": "^9.0 | ^10.0",
30+
"squizlabs/php_codesniffer": "^3.0"
3131
},
3232
"autoload-dev": {
33-
"classmap": ["lib/", "tests/lib/"]
33+
"classmap": ["src/", "tests/"]
3434
},
3535
"extra": {
3636
"branch-alias": {

Diff for: default-enable

-3
This file was deleted.

Diff for: lib/ConfigHelper.php

-126
This file was deleted.

Diff for: phpcs.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<ruleset name="drupalauth">
33
<description>The coding standard for drupalauth.</description>
44

5-
<rule ref="PSR2" />
6-
<file>./lib</file>
7-
<file>./www</file>
5+
<rule ref="PSR12" />
6+
<file>./src</file>
7+
<file>./public</file>
88
</ruleset>

Diff for: www/resume.php renamed to public/resume.php

File renamed without changes.

Diff for: scripts/phpunit.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
php -v
4+
rm -rf ./vendor composer.lock
5+
composer install
6+
7+
./vendor/bin/phpunit

Diff for: scripts/style-fix.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
rm -rf ./vendor composer.lock
4+
composer install
5+
6+
./vendor/bin/phpcbf

Diff for: scripts/style-lint.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
rm -rf ./vendor composer.lock
4+
composer install
5+
6+
./vendor/bin/phpcs
7+
8+
#lando phpunit -s php80
9+
#lando style-lint -s php80
10+
#lando phpunit -s php81
11+
#lando style-lint -s php81
12+
#lando phpunit -s php82
13+
#lando style-lint -s php82

0 commit comments

Comments
 (0)