Skip to content

Instantly share code, notes, and snippets.

@kozog
Last active March 26, 2017 21:51
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kozog/b0502bd590385b31143d to your computer and use it in GitHub Desktop.
Save kozog/b0502bd590385b31143d to your computer and use it in GitHub Desktop.
PHP-CI symfony config
build_settings:
ignore:
- "vendor"
- "tests"
setup:
composer:
action: "install"
shell:
- "%BUILD_PATH%/app/console doctrine:schema:drop --force"
- "%BUILD_PATH%/app/console doctrine:schema:create"
- "%BUILD_PATH%/app/console doctrine:fixtures:load -n"
test:
php_unit:
config:
- "app/phpunit.xml.dist"
php_code_sniffer:
path: "src"
standard: "PSR1,PSR2"
allowed_errors: 10
allow_warnings: 99999
php_mess_detector:
rules:
- "codesize"
- "unusedcode"
- "naming"
allow_failures: true
complete:
shell:
- "%BUILD_PATH%/app/console doctrine:schema:drop --force"
- "%BUILD_PATH%/app/console doctrine:schema:create"
- "%BUILD_PATH%/app/console doctrine:fixtures:load -n"
@kwn
Copy link

kwn commented Aug 21, 2014

@kozog Ok, but where do you create/copy parameters.yml file with eg. database parameters?

@skecskes
Copy link

skecskes commented May 9, 2015

you can use in php_code_sniffer:

allow_warnings: -1 #unlimited, so basicly allow all warnings

How did you define %BUILD_PATH%? Can you define system root path? I want to copy build if successful to /var/www and set new symlink to make deployment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment