Skip to content

Commit 1b07f2d

Browse files
authored
Merge pull request #1 from netgen/prepare_release
Prepare 2.0 release
2 parents a65f295 + e1f3671 commit 1b07f2d

File tree

35 files changed

+844
-191
lines changed

35 files changed

+844
-191
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ composer.phar
66
composer.lock
77
phpunit.phar
88
.DS_Store
9+
coverage/
10+
extension/
11+
.php_cs.cache
12+
phpunit.xml
13+
coverage.xml
14+
build/

.php_cs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
return PhpCsFixer\Config::create()
4+
->setRiskyAllowed(true)
5+
->setRules([
6+
'@Symfony' => true,
7+
'@Symfony:risky' => true,
8+
'array_syntax' => array('syntax' => 'long'),
9+
'combine_consecutive_unsets' => true,
10+
'concat_space' => ['spacing' => 'one'],
11+
'no_useless_else' => true,
12+
'no_useless_return' => true,
13+
'ordered_class_elements' => true,
14+
'ordered_imports' => true,
15+
'phpdoc_add_missing_param_annotation' => true,
16+
'phpdoc_align' => false,
17+
'phpdoc_order' => true,
18+
'phpdoc_no_alias_tag' => false,
19+
'psr4' => true,
20+
'semicolon_after_instruction' => true,
21+
'strict_comparison' => true,
22+
'strict_param' => true,
23+
])
24+
->setFinder(
25+
PhpCsFixer\Finder::create()
26+
->exclude(['vendor', 'build', 'doc'])
27+
->in(__DIR__)
28+
)
29+
;

.scrutinizer.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
filter:
2+
paths:
3+
- "bundle/*"
4+
excluded_paths:
5+
- 'tests/'
6+
- 'doc/'
7+
- 'build/'
8+
- 'vendor/'
9+
10+
checks:
11+
php: true
12+
13+
build:
14+
environment:
15+
php:
16+
version: 5.6
17+
tests:
18+
override:
19+
-
20+
command: 'vendor/bin/phpunit --coverage-clover=coverage'
21+
coverage:
22+
file: 'coverage'
23+
format: 'clover'
24+
25+
tools:
26+
external_code_coverage: false

.travis.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
language: php
2+
3+
cache:
4+
directories:
5+
- vendor
6+
7+
matrix:
8+
# mark as finished before allow_failures are run
9+
fast_finish: true
10+
include:
11+
- php: 5.6
12+
- php: 7.0
13+
- php: 7.1
14+
15+
# test only master (+ pull requests)
16+
branches:
17+
only:
18+
- master
19+
20+
# make sure to update composer to latest available version
21+
before_install:
22+
- phpenv config-add travis.php.ini
23+
24+
# install dependencies
25+
install:
26+
- composer install
27+
28+
# execute phpunit as the script command
29+
script:
30+
- ./vendor/bin/phpunit -d memory_limit=-1 --colors -c phpunit.xml.dist --coverage-clover=coverage.xml
31+
32+
# disable mail notifications
33+
notification:
34+
email: false
35+
36+
# reduce depth (history) of git checkout
37+
git:
38+
depth: 30
39+
40+
# we don't need sudo
41+
sudo: false
42+
43+
# enable scrutinizer
44+
after_script:
45+
- wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover
46+
47+
# send coverage to codecov.io
48+
after_success:
49+
- bash <(curl -s https://codecov.io/bash)

DependencyInjection/NetgenEnhancedBinaryFileExtension.php

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

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
1-
Netgen Enhanced Binary File Bundle
2-
================================
1+
NetgenEnhancedBinaryFileBundle
2+
==============================
33

4-
Netgen Enhanced Binary FIle Bundle is an eZ Publish 5 bundle that provides a field type that reimplements `ezbinaryfile` field type.
4+
NetgenEnhancedBinaryFileBundle is an eZ Publish 5/Platform bundle that provides a field type that reimplements `ezbinaryfile` field type.
55

66
This repository represents eZ Publish 5 rewrite of the original eZ Publish 4 extension called `enhancedezbinaryfile`.
77

88
However, The eZ Publish 4 extension is still required to populate field type through the admin interface.
99

1010
When you install this bundle with Composer, the eZ Publish 4 extension is installed automatically but not activated in settings.
1111

12-
License
12+
License, docs and installation instructions
1313
-------------------------------------
1414

15-
* [Copyright](COPYRIGHT)
15+
[License](LICENSE)
1616

17-
* [License](LICENSE)
17+
[Copyright](doc/COPYRIGHT)
18+
19+
[Installation instructions](doc/INSTALL.md)
20+
21+
[Documentation](doc/DOC.md)
22+
23+
[Changelog](doc/CHANGELOG.md)

Resources/config/fieldtypes.yml

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

Resources/config/storage_engines.yml

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

0 commit comments

Comments
 (0)