
# .travis.yml
language: php

branches:
    only:
        - master

matrix:
    fast_finish: true
    include:
        - php: 7.0

sudo: false

addons:
    apt:
        packages:
            - parallel

cache:
    directories:
        - $HOME/.composer/cache

before_install:
    - composer self-update
    - composer --version

before_script:
    - composer install --no-interaction --no-progress --optimize-autoloader

script:
    - >
        echo;
        echo "Running php lint";
        find . -name \*.php -path "./src/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
    - >
        echo;
        echo "Running php-cs-fixer";
        vendor/bin/php-cs-fixer --diff --dry-run -v fix

after_success:
    if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
        curl -LO https://deployer.org/deployer.phar;
        mv deployer.phar /usr/local/bin/dep;
        chmod +x /usr/local/bin/dep;
        dep self-update;
        dep deploy;
    fi


# .travis.yml
language: php

branches:
    only:
        - master

matrix:
    fast_finish: true
    include:
        - php: 7.0

sudo: false

addons:
    apt:
        packages:
            - parallel

cache:
    directories:
        - $HOME/.composer/cache

before_install:
    - composer self-update
    - composer --version

before_script:
    - composer install --no-interaction --no-progress --optimize-autoloader

script:
    - >
        echo;
        echo "Running php lint";
        find . -name \*.php -path "./src/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
    - >
        echo;
        echo "Running php-cs-fixer";
        vendor/bin/php-cs-fixer --diff --dry-run -v fix

after_success:
    if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
        curl -LO https://deployer.org/deployer.phar;
        sudo mv deployer.phar /usr/local/bin/dep;
        sudo chmod +x /usr/local/bin/dep;
        dep self-update;
        dep deploy;
    fi

Correct permissions on installing deployer
[BUGFIX] Correct permissions on installing deployer
