Skip to content

Commit eacbb03

Browse files
committed
Update build
1 parent 102caef commit eacbb03

File tree

6 files changed

+75
-167
lines changed

6 files changed

+75
-167
lines changed

.scrutinizer.yml

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,40 @@
1+
filter:
2+
paths: ["src/*"]
3+
excluded_paths: ["vendor/*", "tests/*"]
4+
15
checks:
26
php:
37
code_rating: true
48
duplication: true
5-
tools:
6-
php_cs_fixer:
7-
enabled: true
8-
extensions:
9-
- php
10-
config: { level: psr2 }
11-
filter:
12-
paths:
13-
- src/
14-
php_sim:
15-
enabled: true
16-
min_mass: 30 # Defaults to 16
17-
php_code_sniffer:
18-
enabled: true
19-
config:
20-
standard: PSR2
21-
filter:
22-
paths:
23-
- src/
24-
25-
filter:
26-
paths:
27-
- src/*
28-
excluded_paths:
29-
- tests/
309

3110
tools:
32-
external_code_coverage:
33-
timeout: 600
34-
runs: 1
11+
external_code_coverage: false
3512

3613
build:
14+
environment:
15+
php: 7.2
16+
mysql: false
17+
node: false
18+
postgresql: false
19+
mongodb: false
20+
elasticsearch: false
21+
redis: false
22+
memcached: false
23+
neo4j: false
24+
rabbitmq: false
25+
nodes:
26+
analysis:
27+
tests:
28+
override:
29+
- php-scrutinizer-run
30+
dependencies:
31+
before:
32+
- composer self-update
33+
- composer update --no-interaction --prefer-dist --no-progress
3734
tests:
38-
override:
35+
before:
3936
-
40-
command: 'vendor/bin/phpunit --coverage-clover build/logs/clover.xml'
37+
command: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
4138
coverage:
4239
file: 'build/logs/clover.xml'
43-
format: 'clover'
40+
format: 'clover'

.styleci.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.travis.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,17 @@ language: php
33
php:
44
- 7.0
55
- 7.1
6+
- 7.2
7+
- 7.3
68
- nightly
79

10+
dist: xenial
11+
12+
addons:
13+
apt:
14+
packages:
15+
- ant
16+
817
# This triggers builds to run on the new TravisCI infrastructure.
918
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
1019
sudo: false
@@ -22,6 +31,3 @@ before_script:
2231
script:
2332
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
2433

25-
after_success:
26-
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
27-
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

build.xml

Lines changed: 0 additions & 73 deletions
This file was deleted.

composer.json

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,41 @@
11
{
2-
"name": "selective/base32",
3-
"type": "library",
4-
"description": "Base32 based on RFC 4648",
5-
"keywords": [
6-
"base32",
7-
"encode",
8-
"decode",
9-
"encoding",
10-
"encoder"
11-
],
12-
"homepage": "https://github.com/selective-php/base32",
13-
"license": "MIT",
14-
"require": {
15-
"php": ">=7.0"
16-
},
17-
"require-dev": {
18-
"phpunit/phpunit": "^6.0"
19-
},
20-
"scripts": {
21-
"test": "phpunit",
22-
"test-coverage": "phpunit --coverage-clover build/logs/clover.xml --coverage-html build/coverage",
23-
"check-style": "phpcs -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests",
24-
"fix-style": "phpcbf -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit -n --no-patch 1 src tests"
25-
},
26-
"autoload": {
27-
"psr-4": {
28-
"Selective\\": "src"
2+
"name": "selective/base32",
3+
"type": "library",
4+
"description": "Base32 based on RFC 4648",
5+
"keywords": [
6+
"base32",
7+
"encode",
8+
"decode",
9+
"encoding",
10+
"encoder"
11+
],
12+
"homepage": "https://github.com/selective-php/base32",
13+
"license": "MIT",
14+
"require": {
15+
"php": ">=7.0"
16+
},
17+
"require-dev": {
18+
"phpstan/phpstan": "^0.11.5",
19+
"phpunit/phpunit": "^6.0"
20+
},
21+
"scripts": {
22+
"test": "php vendor/phpunit/phpunit/phpunit",
23+
"test-coverage": "php vendor/phpunit/phpunit/phpunit --coverage-clover build/logs/clover.xml --coverage-html build/coverage",
24+
"check-style": "phpcs -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests",
25+
"fix-style": "phpcbf -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit -n src tests",
26+
"phpstan": "php vendor/phpstan/phpstan/bin/phpstan analyse src tests --level=max -c phpstan.neon"
27+
},
28+
"autoload": {
29+
"psr-4": {
30+
"Selective\\": "src"
31+
}
32+
},
33+
"autoload-dev": {
34+
"psr-4": {
35+
"Selective\\Test\\": "tests"
36+
}
37+
},
38+
"config": {
39+
"sort-packages": true
2940
}
30-
},
31-
"autoload-dev": {
32-
"psr-4": {
33-
"Selective\\Test\\": "tests"
34-
}
35-
},
36-
"config": {
37-
"sort-packages": true
38-
}
3941
}

phpstan.neon

Whitespace-only changes.

0 commit comments

Comments
 (0)