Failed Conditions
Push — master ( 35e909...51a126 )
by Yo
01:31
created

Checkout Config

checks:
    javascript: true
build_failure_conditions:
    - 'project.metric_change("scrutinizer.quality", < -0.10)'
    - 'elements.rating(<= D).exists'               # No classes/methods with a rating of D or worse
    - 'elements.rating(<= D).new.exists'           # No new classes/methods with a rating of D or worse allowed
    - 'issues.label("coding-style").exists'        # No coding style issues allowed
    - 'issues.label("coding-style").new.exists'    # No new coding style issues allowed
    - 'issues.severity(>= MAJOR).new.exists'       # New issues of major or higher severity
    - 'issues.severity(>= MAJOR).exists'           # New major or higher severity issues
    - 'project.metric("scrutinizer.quality", < 9)' # Code Quality Rating drops below 9
    - 'project.metric("scrutinizer.test_coverage", < 0.98)' # Code Coverage drops below 98%
    # Code Coverage decreased from previous inspection by more than 2%
    - 'project.metric_change("scrutinizer.test_coverage", < -0.02)'
    - 'patches.label("Doc Comments").exists'       # No doc comments patches allowed
    - 'patches.label("Spacing").exists'            # No spacing patches allowed
filter:
    excluded_paths:
        - test/*
build:
    cache:
        directories:
            - $HOME/.yarn
            - $HOME/.npm
            - node_modules
    environment:
         node: '6'
         postgresql: false
    dependencies:
        before:
            -  test -d $HOME/.yarn || curl -o- -L https://yarnpkg.com/install.sh | bash
            # Export yarn and node binary paths
            - export PATH=$HOME/.yarn/bin:./node_modules/.bin/:$PATH
        override:
            - yarn install
    tests:
        override:
            - npm run codestyle
            -
                command: 'npm run coverage-clover'
                coverage:
                    file: 'build/coverage.clover.xml'
                    format: 'clover'

Repository Config

checks:
    javascript: true
build: true