mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-05 15:08:47 +00:00
Merge pull request #1163 from wallabag/v2-speed-up-tests
Speed up tests
This commit is contained in:
commit
bdf2add2e8
4 changed files with 70 additions and 12 deletions
22
.scrutinizer.yml
Normal file
22
.scrutinizer.yml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
filter:
|
||||||
|
paths:
|
||||||
|
- src/*
|
||||||
|
excluded_paths:
|
||||||
|
- 'vendor/*'
|
||||||
|
- 'app/*'
|
||||||
|
- 'web/*'
|
||||||
|
- 'src/Wallabag/*Bundle/Tests/*'
|
||||||
|
- '*Test.php'
|
||||||
|
|
||||||
|
tools:
|
||||||
|
php_cs_fixer: true
|
||||||
|
php_analyzer: true
|
||||||
|
php_mess_detector: true
|
||||||
|
php_changetracking: true
|
||||||
|
php_code_sniffer: true
|
||||||
|
php_pdepend: true
|
||||||
|
sensiolabs_security_checker: true
|
||||||
|
external_code_coverage: true
|
||||||
|
php_code_coverage: true
|
||||||
|
php_sim: false
|
||||||
|
php_cpd: false
|
45
.travis.yml
45
.travis.yml
|
@ -1,18 +1,45 @@
|
||||||
language: php
|
language: php
|
||||||
|
|
||||||
|
# faster builds on docker-container setup
|
||||||
|
sudo: false
|
||||||
|
|
||||||
|
# cache vendor dirs
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- vendor
|
||||||
|
- $HOME/.composer/cache
|
||||||
|
|
||||||
php:
|
php:
|
||||||
- 5.4
|
- 5.4
|
||||||
- 5.5
|
- 5.5
|
||||||
- 5.6
|
- 5.6
|
||||||
|
- hhvm
|
||||||
|
- nightly
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
fast_finish: true
|
||||||
|
allow_failures:
|
||||||
|
- php: hhvm
|
||||||
|
- php: nightly
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- v2
|
- v2
|
||||||
|
|
||||||
|
install:
|
||||||
|
- composer self-update
|
||||||
|
|
||||||
|
# build coverage only on one build, to speed up results feedbacks
|
||||||
before_script:
|
before_script:
|
||||||
- composer self-update
|
- if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; fi;
|
||||||
- echo 'date.timezone = "Europe/Paris"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ant prepare
|
- ant prepare
|
||||||
- phpunit --coverage-text
|
- phpunit $PHPUNIT_FLAGS
|
||||||
|
|
||||||
|
after_script:
|
||||||
|
- |
|
||||||
|
if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
|
||||||
|
wget https://scrutinizer-ci.com/ocular.phar
|
||||||
|
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|
||||||
|
fi
|
||||||
|
|
|
@ -20,3 +20,10 @@ doctrine:
|
||||||
driver: pdo_sqlite
|
driver: pdo_sqlite
|
||||||
path: %kernel.root_dir%/../data/db/wallabag_test.sqlite
|
path: %kernel.root_dir%/../data/db/wallabag_test.sqlite
|
||||||
host: localhost
|
host: localhost
|
||||||
|
orm:
|
||||||
|
metadata_cache_driver:
|
||||||
|
type: service
|
||||||
|
id: filesystem_cache
|
||||||
|
query_cache_driver:
|
||||||
|
type: service
|
||||||
|
id: filesystem_cache
|
||||||
|
|
|
@ -6,6 +6,8 @@ parameters:
|
||||||
security.validator.user_password.class: Wallabag\CoreBundle\Security\Validator\WallabagUserPasswordValidator
|
security.validator.user_password.class: Wallabag\CoreBundle\Security\Validator\WallabagUserPasswordValidator
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# service_name:
|
# used for tests
|
||||||
# class: AppBundle\Directory\ClassName
|
filesystem_cache:
|
||||||
# arguments: ["@another_service_name", "plain_value", "%parameter_name%"]
|
class: Doctrine\Common\Cache\FilesystemCache
|
||||||
|
arguments:
|
||||||
|
- %kernel.cache_dir%/doctrine/metadata
|
||||||
|
|
Loading…
Reference in a new issue