File tree 10 files changed +113
-18
lines changed
10 files changed +113
-18
lines changed Original file line number Diff line number Diff line change
1
+ root = true
2
+
3
+ [* ]
4
+ charset = utf-8
5
+ end_of_line = lf
6
+ indent_size = 4
7
+ indent_style = space
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
Original file line number Diff line number Diff line change
1
+ .editorconfig export-ignore
2
+ .gitattributes export-ignore
3
+ /.github / export-ignore
4
+ .gitignore export-ignore
5
+ /.php_cs export-ignore
6
+ /.scrutinizer.yml export-ignore
7
+ /.styleci.yml export-ignore
8
+ /.travis.yml export-ignore
9
+ /behat.yml.dist export-ignore
10
+ /features / export-ignore
11
+ /phpspec.ci.yml export-ignore
12
+ /phpspec.yml.dist export-ignore
13
+ /phpunit.xml.dist export-ignore
14
+ /spec / export-ignore
15
+ /Tests / export-ignore
Original file line number Diff line number Diff line change 1
- build
2
- phpunit.xml
3
- composer.lock
4
- vendor
1
+ /behat.yml
2
+ /build /
3
+ /composer.lock
4
+ /phpspec.yml
5
+ /phpunit.xml
6
+ /vendor /
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /*
4
+ * In order to make it work, fabpot/php-cs-fixer and sllh/php-cs-fixer-styleci-bridge must be installed globally
5
+ * with composer.
6
+ *
7
+ * @link https://github.com/Soullivaneuh/php-cs-fixer-styleci-bridge
8
+ * @link https://github.com/FriendsOfPHP/PHP-CS-Fixer
9
+ */
10
+
11
+ use SLLH \StyleCIBridge \ConfigBridge ;
12
+
13
+ return ConfigBridge::create ();
Original file line number Diff line number Diff line change
1
+ filter :
2
+ excluded_paths : [vendor/*, tests/*]
3
+ checks :
4
+ php :
5
+ code_rating : true
6
+ duplication : true
7
+ tools :
8
+ external_code_coverage : true
Original file line number Diff line number Diff line change
1
+ preset : symfony
2
+
3
+ finder :
4
+ exclude :
5
+ - " Resources"
6
+ - " vendor"
7
+
8
+ enabled :
9
+ - short_array_syntax
10
+
11
+ disabled :
12
+ - phpdoc_annotation_without_dot # This is still buggy: https://github.com/symfony/symfony/pull/19198
Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
+ cache :
4
+ directories :
5
+ - $HOME/.composer/cache
6
+ branches :
7
+ except :
8
+ - /^analysis-.*$/
9
+
3
10
php :
4
- - 5.5
5
11
- 5.6
6
12
- 7.0
13
+ - 7.1
7
14
- hhvm
15
+ env :
16
+ global :
17
+ - TEST_COMMAND="composer test"
18
+ matrix :
19
+ - SYMFONY_VERSION=3.1.*
20
+ - SYMFONY_VERSION=3.0.*
21
+ - SYMFONY_VERSION=2.8.*
22
+ - SYMFONY_VERSION=2.7.*
8
23
9
- before_install :
10
- - composer self-update
24
+ matrix :
25
+ fast_finish : true
26
+ include :
27
+ - php : 5.6
28
+ env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci" SYMFONY_VERSION=2.7.*
11
29
12
30
install :
13
- - composer update
31
+ - composer require symfony/symfony:${SYMFONY_VERSION} --no-update
32
+ - travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
14
33
15
34
script :
16
- - phpunit
35
+ - $TEST_COMMAND
36
+
37
+ after_success :
38
+ - if [[ $COVERAGE = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
39
+ - if [[ $COVERAGE = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi
Original file line number Diff line number Diff line change 1
1
# Happyr Translation Bundle
2
2
3
+ [ ![ Latest Version] ( https://img.shields.io/github/release/Happyr/TranslationBundle.svg?style=flat-square )] ( https://github.com/Happyr/TranslationBundle/releases )
4
+ [ ![ Build Status] ( https://img.shields.io/travis/Happyr/TranslationBundle.svg?style=flat-square )] ( https://travis-ci.org/Happyr/TranslationBundle )
5
+ [ ![ Code Coverage] ( https://img.shields.io/scrutinizer/coverage/g/Happyr/TranslationBundle.svg?style=flat-square )] ( https://scrutinizer-ci.com/g/Happyr/TranslationBundle )
6
+ [ ![ Quality Score] ( https://img.shields.io/scrutinizer/g/Happyr/TranslationBundle.svg?style=flat-square )] ( https://scrutinizer-ci.com/g/Happyr/TranslationBundle )
7
+ [ ![ Total Downloads] ( https://img.shields.io/packagist/dt/happyr/translation-bundle.svg?style=flat-square )] ( https://packagist.org/packages/happyr/translation-bundle )
8
+
3
9
This bundle helps you to integrate with a third party translation service. The bundle has been focused to integrate to
4
10
the [ Loco] ( https://localise.biz ) service. If you want to know how Happyr work with this bundle you should check out
5
11
[ this blog post] ( http://developer.happyr.com/how-happyr-work-with-symfony-translations ) .
Original file line number Diff line number Diff line change 8
8
"authors" : [
9
9
{
10
10
"name" : " Tobias Nyholm" ,
11
- "email" : " tobias@happyr .com"
11
+ "email" : " tobias.nyholm@gmail .com"
12
12
}
13
13
],
14
14
"require" : {
15
- "php" : " >= 5.5.9" ,
16
- "symfony/symfony" : " ~ 2.7|~ 3.0" ,
17
- "sensio/framework-extra-bundle" : " ~ 2.7|~ 3.0" ,
15
+ "php" : " ^ 5.5.9 || ^7.0 " ,
16
+ "symfony/framework-bundle" : " ^ 2.7 || ^ 3.0" ,
17
+ "sensio/framework-extra-bundle" : " ^ 2.7 || ^ 3.0" ,
18
18
"php-http/httplug" : " ^1.0" ,
19
19
"php-http/plugins" : " ^1.0" ,
20
20
"php-http/client-implementation" : " ^1.0" ,
21
21
"psr/log" : " ^1.0"
22
22
},
23
23
"require-dev" : {
24
+ "phpunit/phpunit" : " ^4.5 || ^5.4" ,
25
+ "matthiasnoback/symfony-dependency-injection-test" : " ^1.0" ,
26
+ "symfony/symfony" : " ^2.3 || ^3.0" ,
24
27
"php-http/guzzle6-adapter" : " ~1.0" ,
25
28
"php-http/httplug-bundle" : " ~1.0"
26
29
},
37
40
"psr-4" : {
38
41
"Happyr\\ TranslationBundle\\ tests\\ " : " tests/"
39
42
}
43
+ },
44
+ "scripts" : {
45
+ "test" : " vendor/bin/phpunit" ,
46
+ "test-ci" : " vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml"
40
47
}
41
48
}
42
49
Original file line number Diff line number Diff line change 15
15
16
16
<formatter type =" clover" usefile =" false" />
17
17
<testsuites >
18
- <testsuite name =" Happyr Test Suite" >
19
- <directory >./tests</directory >
18
+ <testsuite name =" Functional tests" >
19
+ <directory >./tests/Functional</directory >
20
+ </testsuite >
21
+ <testsuite name =" Unit tests" >
22
+ <directory >./tests/Unit</directory >
20
23
</testsuite >
21
24
</testsuites >
22
25
29
32
</exclude >
30
33
</whitelist >
31
34
</filter >
32
-
33
- <logging >
34
- </logging >
35
35
</phpunit >
You can’t perform that action at this time.
0 commit comments