Skip to content

Instantly share code, notes, and snippets.

@vikbert
Last active March 29, 2018 15:12
Show Gist options
  • Save vikbert/201b97c646eb24d4b0028d483d344a52 to your computer and use it in GitHub Desktop.
Save vikbert/201b97c646eb24d4b0028d483d344a52 to your computer and use it in GitHub Desktop.
[gitlab] gitlab config #gitlab, #config

gitlab config sample

gitlab.ci.yml

before_script:
    - composer install --prefer-dist > /dev/null
    - export APP_ENV=dev

unitTesting:
    script:
        - echo "Running PHP Unit tet"
        - php bin/phpunit --colors --debug  --coverage-text
codeSniffer:
    script:
        - php bin/phpcs --config-set ignore_warnings_on_exit 1
        - php bin/phpcs --standard=PSR2 --ignore=app/tests,app/Console/-w --colors app/
    allow_failure: true

phpMess:
    script:
        - php bin/phpmd src/AppBundle text cleancode,controversial,codesize,design,naming,unusedcode --exclude=app/views,app/storage,app/tests,app/Console/
    allow_failure: true
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment