Skip to content

Instantly share code, notes, and snippets.

@mrprompt
Created October 18, 2015 01:26
Show Gist options
  • Save mrprompt/df67b1dd3c6ff868f465 to your computer and use it in GitHub Desktop.
Save mrprompt/df67b1dd3c6ff868f465 to your computer and use it in GitHub Desktop.
PHPCI Config
build_settings:
clone_depth: 1
verbose: false
ignore:
- "migrations"
- "public"
- "resources"
- "tmp"
- "tests"
- "vendor"
setup:
shell:
- "cd %BUILD_PATH% && cp config/config.yml.dist config/config.yml"
composer:
action: "install"
prefer_dist: true
test:
lint:
directories:
- "src/"
- "tests/"
- "migrations/"
php_code_sniffer:
standard: "PSR2"
allowed_errors: -1
allowed_warnings: -1
ignore:
- "migrations"
- "public"
- "tests"
- "vendor"
- "bootstrap.php"
- "cli-config.php"
- "deploy.php"
- "phpunit-bootstrap.php"
- "phpunit-shutdown.php"
php_docblock_checker:
path: "src"
php_loc:
directory: "src"
php_unit:
complete:
clean_build:
remove:
- vendor
success:
shell:
- "cd %BUILD_PATH% && ./bin/deployer.phar deploy production"
- "cd %BUILD_PATH% && ./bin/deployer.phar deploy development"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment