2017 © Pedro Peláez
 

application php-censor

PHP Censor is a open source self-hosted continuous integration server for PHP projects (PHPCI fork).

image

erp-mgroen/php-censor

PHP Censor is a open source self-hosted continuous integration server for PHP projects (PHPCI fork).

  • Friday, September 29, 2017
  • by korvinko
  • Repository
  • 3 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

PHP Censor Travis CI Latest Version Total downloads License SensioLabs Insight, (*1)

PHP Censor , (*2)

PHP Censor is a open source self-hosted continuous integration server for PHP projects (PHPCI fork)., (*3)

Dashboard, (*4)

More screenshots., (*5)

System requirements

  • Unix-like OS (Windows isn't supported);, (*6)

  • PHP 5.6+ (with OpenSSL support and enabled functions: exec(), shell_exec() and proc_open());, (*7)

  • Web-server (Nginx or Apache2);, (*8)

  • Database (MySQL/MariaDB or PostgreSQL);, (*9)

  • Beanstalkd queue (Optional);, (*10)

Features

  • Clone project from Github, Bitbucket, Gitlab, Git, Mercurial, SVN or from local directory;, (*11)

  • Set up and tear down database tests for PostgreSQL, MySQL or SQLite;, (*12)

  • Install Composer dependencies;, (*13)

  • Run tests for PHPUnit, Atoum, Behat, Codeception and PHPSpec;, (*14)

  • Check code via Lint, PHPParallelLint, Pdepend, PHPCodeSniffer, PHPCpd, PHPCsFixer, PHPDocblockChecker, PHPLoc, PHPMessDetect, PHPTalLint and TechnicalDept;, (*15)

  • Run through any combination of the other supported plugins, including Campfire, CleanBuild, CopyBuild, Deployer, Env, Git, Grunt, Gulp, PackageBuild, Phar, Phing, Shell and Wipe;, (*16)

  • Send notifications on Email, XMPP, Slack, IRC, Flowdock, HipChat and Telegram;, (*17)

  • Use your LDAP-server for authentication;, (*18)

Installing

  • Go to the directory in which you want to install PHP Censor, for example: /var/www:
cd /var/www
  • Create project by Composer:
composer create-project php-censor/php-censor php-censor.local --keep-vcs

Or download latest archive from Github, unzip it and run composer install., (*19)

  • Create empty database for application (Mysql/MariaDB or Postgres);, (*20)

  • Install Beanstalkd Queue (Optional, if you are going to use queue with Worker):, (*21)

aptitude install beanstalkd # For deb-based
  • Install PHP Censor itself:
cd ./php-censor.local

# Interactive installation
./bin/console php-censor:install

# Non-interactive installation
./bin/console php-censor:install --url='http://php-censor.local' --db-type=pgsql --db-host=localhost --db-name=php-censor --db-user=php-censor --db-password=php-censor --db-port=null --admin-name=admin --admin-password=admin --admin-email='admin@php-censor.local' --queue-use=1 --queue-host=localhost --queue-name=php-censor

# Non-interactive installation with prepared config.yml file
./bin/console php-censor:install --config-from-file=yes --admin-name=admin --admin-password=admin --admin-email='admin@php-censor.local'

Installing via Docker

If you want to install PHP Censor as Docker container, you can use php-censor/docker-php-censor project., (*24)

Updating

  • Go to your PHP Censor directory (to /var/www/php-censor.local for example):, (*25)

    cd /var/www/php-censor.local
    
  • Pull the latest code from repository by Git (If you want latest master branch):, (*26)

    git checkout master
    git pull -r
    

    Or pull latest version:, (*27)

    git fetch
    git checkout <version>
    
  • Update the Composer dependencies: composer install, (*28)

  • Update the database scheme:, (*29)

    ./bin/console php-censor-migrations:migrate
    
  • Restart Supervisord workers (If you use workers and Supervisord):, (*30)

    sudo supervisorctl status
    sudo supervisorctl restart <worker:worker_00>
    ...
    sudo supervisorctl restart <worker:worker_nn>
    

    Or restart Systemd workers (If you use workers and Systemd):, (*31)

    sudo systemctl restart <worker@1.service>
    ...
    sudo systemctl restart <worker@n.service>
    

Configuring project

There are several ways to set up the project:, (*32)

  • Add project without any project config (Runs "zero-config" plugins, including: Composer, TechnicalDept, PHPLoc, PHPCpd, PHPCodeSniffer, PHPMessDetect, PHPDocblockChecker, PHPParallelLint, PHPUnit and Codeception);, (*33)

  • Similar to Travis CI, to support PHP Censor in your project, you simply need to add a .php-censor.yml (phpci.yml/.phpci.yml for backward compatibility with PHPCI) file to the root of your repository;, (*34)

  • Add project config in PHP Censor project page (And it will cancel file config from project repository);, (*35)

The project config should look something like this:, (*36)

setup:
  composer:
    action: "install"
test:
  php_unit:
    config: "phpunit.xml"
  php_mess_detector:
    allow_failures: true
  php_code_sniffer:
    standard: "PSR2"
  php_cpd:
    allow_failures: true
complete:
  email:
    default_mailto_address: admin@php-censor.local

More details about configuring project., (*37)

Migrations

Run to apply latest migrations:, (*38)

cd /path/to/php-censor
./bin/console php-censor-migrations:migrate

Run to create new migration:, (*39)

cd /path/to/php-censor
./bin/console php-censor-migrations:create NewMigrationName

Tests

cd /path/to/php-censor

# For testing on MySQL DB
./vendor/bin/phpunit --configuration ./phpunit.mysql.xml

# For testing on PostgreSQL
./vendor/bin/phpunit --configuration ./phpunit.pgsql.xml

For Phar plugin tests set 'phar.readonly' setting to Off (0) in php.ini config. Otherwise tests will be skipped., (*40)

For database B8Framework tests create empty 'b8_test' database on 'localhost' with user/password: root/<empty>' for MySQL and with user/password: postgres/<empty>' for PostgreSQL (You can change default test user, password and database name in phpunit.mysql|pgsql.xml config). If connection failed tests will be skipped., (*41)

Documentation

Full PHP Censor documentation., (*42)

License

PHP Censor is open source software licensed under the BSD-2-Clause license., (*43)

The Versions

29/09 2017

dev-master

9999999-dev http://php-censor.info

PHP Censor is a open source self-hosted continuous integration server for PHP projects (PHPCI fork).

  Sources   Download

BSD-2-Clause

The Requires

 

testing php ci continuous integration phpci open-source self-hosted php-censor ci-server

28/09 2017

0.0.5

0.0.5.0 http://php-censor.info

PHP Censor is a open source self-hosted continuous integration server for PHP projects (PHPCI fork).

  Sources   Download

BSD-2-Clause

The Requires

 

testing php ci continuous integration phpci open-source self-hosted php-censor ci-server

28/09 2017

dev-php-censort-master

dev-php-censort-master http://php-censor.info

PHP Censor is a open source self-hosted continuous integration server for PHP projects (PHPCI fork).

  Sources   Download

BSD-2-Clause

The Requires

 

testing php ci continuous integration phpci open-source self-hosted php-censor ci-server

18/07 2017

0.0.4

0.0.4.0 https://github.com/corpsee/php-censor

PHP Censor is a open source self-hosted continuous integration server for PHP projects (Fork of PHPCI)

  Sources   Download

BSD-2-Clause

The Requires

 

testing php ci continuous integration phpci open-source self-hosted php-censor ci-server

23/06 2017

0.0.3

0.0.3.0 https://github.com/corpsee/php-censor

PHP Censor is a open source self-hosted continuous integration server for PHP projects (Fork of PHPCI)

  Sources   Download

BSD-2-Clause

The Requires

 

testing php ci continuous integration phpci open-source self-hosted php-censor ci-server

23/06 2017

0.0.2

0.0.2.0 https://github.com/corpsee/php-censor

PHP Censor is a open source self-hosted continuous integration server for PHP projects (Fork of PHPCI)

  Sources   Download

BSD-2-Clause

The Requires

 

testing php ci continuous integration phpci open-source self-hosted php-censor ci-server

23/06 2017

0.0.1

0.0.1.0 https://github.com/corpsee/php-censor

PHP Censor is a open source self-hosted continuous integration server for PHP projects (Fork of PHPCI)

  Sources   Download

BSD-2-Clause

The Requires

 

testing php ci continuous integration phpci open-source self-hosted php-censor ci-server