Skip to content

Commit 808b88c

Browse files
authored
v3.0.0
2 parents 72ba5d1 + 26e0d0c commit 808b88c

File tree

124 files changed

+3894
-2651
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+3894
-2651
lines changed

.scrutinizer.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,19 @@ build_failure_conditions:
1010
- 'issues.label("coding-style").exists' # No coding style issues allowed
1111
build:
1212
dependencies:
13-
before:
14-
- composer global require hirak/prestissimo
1513
override:
1614
- make build
1715
tests:
1816
stop_on_failure: true
1917
override:
20-
- php-scrutinizer-run
21-
-
22-
command: make codestyle
23-
analysis:
24-
file: 'build/reports/cs-data'
25-
format: 'php-cs-checkstyle'
2618
-
2719
command: make coverage
2820
idle_timeout: 1200
2921
coverage:
3022
file: 'build/coverage/clover.xml'
3123
format: 'php-clover'
24+
- php-scrutinizer-run --enable-security-analysis
25+
- make codestyle
3226
cache:
3327
directories:
3428
- ~/.composer
@@ -38,11 +32,10 @@ build:
3832
variables:
3933
CI: 'true'
4034
TEST_OUTPUT_STYLE: 'pretty'
35+
COMPOSER_OPTIONS: '--optimize-autoloader'
4136
COVERAGE_OUTPUT_STYLE: 'clover'
4237
COVERAGE_CLOVER_FILE_PATH: 'build/coverage/clover.xml'
43-
PHPCS_REPORT_STYLE: 'checkstyle'
44-
PHPCS_REPORT_FILE: 'build/reports/cs-data'
45-
COMPOSER_OPTIONS: '--optimize-autoloader'
38+
PHPCS_DISABLE_WARNING: "true"
4639
php:
4740
version: "7.1"
4841
timezone: UTC

.travis.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
language: php
22

33
php:
4-
- '7.0'
54
- '7.1'
65
- '7.2'
6+
- '7.3'
77

88
env:
9-
CI: 'true'
10-
TEST_OUTPUT_STYLE: 'pretty'
11-
PHPCS_REPORT_STYLE: 'full'
12-
COMPOSER_OPTIONS: '--optimize-autoloader'
9+
global:
10+
CI: 'true'
11+
TEST_OUTPUT_STYLE: 'pretty'
12+
PHPCS_REPORT_STYLE: 'full'
13+
COMPOSER_OPTIONS: '--optimize-autoloader'
1314

1415
sudo: false
1516

1617
matrix:
1718
fast_finish: true
1819

20+
before_install:
21+
# remove xdebug to speed up build
22+
- phpenv config-rm xdebug.ini || true
23+
1924
install:
2025
- make build
2126
script:
@@ -26,3 +31,7 @@ cache:
2631
directories:
2732
- $HOME/.composer
2833
- vendor
34+
35+
branches:
36+
except:
37+
- /.*\-dev$/

LICENSE

Lines changed: 21 additions & 674 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ COVERAGE_OUTPUT_STYLE ?= html
66
BUILD_DIRECTORY ?= build
77
REPORTS_DIRECTORY ?= ${BUILD_DIRECTORY}/reports
88
COVERAGE_DIRECTORY ?= ${BUILD_DIRECTORY}/coverage
9+
BEHAT_COVERAGE_DIRECTORY ?= ${BUILD_DIRECTORY}/behat-coverage
910
COVERAGE_CLOVER_FILE_PATH ?= ${COVERAGE_DIRECTORY}/clover.xml
1011

1112
## Commands options
1213
### Composer
1314
#COMPOSER_OPTIONS=
1415
### Phpcs
1516
PHPCS_REPORT_STYLE ?= full
17+
PHPCS_DISABLE_WARNING ?= "false"
1618
#PHPCS_REPORT_FILE=
1719
#PHPCS_REPORT_FILE_OPTION=
1820

@@ -51,6 +53,12 @@ ifneq ("${PHPCS_REPORT_FILE}","")
5153
PHPCS_REPORT_FILE_OPTION ?= --report-file=${PHPCS_REPORT_FILE}
5254
endif
5355

56+
ifneq ("${PHPCS_DISABLE_WARNING}","true")
57+
PHPCS_DISABLE_WARNING_OPTION=
58+
else
59+
PHPCS_DISABLE_WARNING_OPTION=-n
60+
endif
61+
5462

5563
## Project build (install and configure)
5664
build: install configure
@@ -76,20 +84,26 @@ test-functional:
7684
./vendor/bin/behat ${BEHAT_COLOR_OPTION} ${BEHAT_OUTPUT_STYLE_OPTION} --no-snippets
7785

7886
codestyle: create-reports-directory
79-
./vendor/bin/phpcs --standard=phpcs.xml.dist ${PHPCS_COLOR_OPTION} ${PHPCS_REPORT_FILE_OPTION} --report=${PHPCS_REPORT_STYLE}
87+
./vendor/bin/phpcs ${PHPCS_DISABLE_WARNING_OPTION} --standard=phpcs.xml.dist ${PHPCS_COLOR_OPTION} ${PHPCS_REPORT_FILE_OPTION} --report=${PHPCS_REPORT_STYLE}
8088

8189
coverage: create-coverage-directory
8290
./vendor/bin/phpunit ${PHPUNIT_COLOR_OPTION} ${PHPUNIT_OUTPUT_STYLE_OPTION} ${PHPUNIT_COVERAGE_OPTION}
8391

92+
behat-coverage: create-behat-coverage-directory
93+
composer required leanphp/behat-code-coverage
94+
./vendor/bin/behat ${BEHAT_COLOR_OPTION} ${BEHAT_OUTPUT_STYLE_OPTION} --no-snippets --profile coverage
8495

8596

8697
# Internal commands
8798
create-coverage-directory:
8899
mkdir -p ${COVERAGE_DIRECTORY}
89100

101+
create-behat-coverage-directory:
102+
mkdir -p ${BEHAT_COVERAGE_DIRECTORY}
103+
90104
create-reports-directory:
91105
mkdir -p ${REPORTS_DIRECTORY}
92106

93107

94-
.PHONY: build install configure test test-technical test-functional codestyle coverage create-coverage-directory create-reports-directory
108+
.PHONY: build install configure test test-technical test-functional codestyle coverage behat-coverage create-coverage-directory create-behat-coverage-directory create-reports-directory
95109
.DEFAULT: build

0 commit comments

Comments
 (0)