-- name: redis-php7.3
- image: friendicaci/php7.3:php7.3.9
- commands:
- - NOCOVERAGE=true NOINSTALL=true TEST_SELECTION=REDIS ./autotest.sh mysql
- environment:
- REDIS_HOST: redis
-
-services:
-- name: redis
- image: redis
-
-trigger:
- branch:
-# - master
- - develop
-# - "*-rc"
-# event:
-# - pull_request
-# - push
-
----
-kind: pipeline
-name: memcache-php7.1
-
-steps:
-- name: memcache-php7.1
- image: friendicaci/php7.1:php7.1.32
- commands:
- - phpenmod xdebug
- - sleep 20
- - NOINSTALL=true TEST_SELECTION=MEMCACHE ./autotest.sh mysql
- - wget https://codecov.io/bash -O codecov.sh
- - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
- - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
- environment:
- MEMCACHE_HOST: memcached
-
-services:
-- name: memcached
- image: memcached
-
-trigger:
- branch:
-# - master
- - develop
-# - "*-rc"
-# event:
-# - pull_request
-# - push
----
-kind: pipeline
-name: memcache-php7.2
-
-steps:
-- name: memcache-php7.2
- image: friendicaci/php7.2:php7.2.22
- commands:
- - NOCOVERAGE=true NOINSTALL=true TEST_SELECTION=MEMCACHE ./autotest.sh mysql
- environment:
- MEMCACHE_HOST: memcached
-
-services:
-- name: memcached
- image: memcached
-
-trigger:
- branch:
-# - master
- - develop
-# - "*-rc"
-# event:
-# - pull_request
-# - push
----
-kind: pipeline
-name: memcache-php7.3
-
-steps:
-- name: memcache-php7.3
- image: friendicaci/php7.3:php7.3.9
- commands:
- - NOCOVERAGE=true NOINSTALL=true TEST_SELECTION=MEMCACHE ./autotest.sh mysql
- environment:
- MEMCACHE_HOST: memcached
-
-services:
-- name: memcached
- image: memcached
-
-trigger:
- branch:
-# - master
- - develop
-# - "*-rc"
-# event:
-# - pull_request
-# - push
-
-
----
-kind: pipeline
-name: memcached-php7.1
-
-steps:
-- name: memcached-php7.1
- image: friendicaci/php7.1:php7.1.32
- commands:
- - phpenmod xdebug
- - sleep 20
- - NOINSTALL=true TEST_SELECTION=MEMCACHED ./autotest.sh mysql
- - wget https://codecov.io/bash -O codecov.sh
- - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
- - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
- environment:
- MEMCACHED_HOST: memcached
-
-services:
-- name: memcached
- image: memcached
-
-trigger:
- branch:
-# - master
- - develop
-# - "*-rc"
-# event:
-# - pull_request
-# - push
----
-kind: pipeline
-name: memcached-php7.2
-
-steps:
-- name: memcached-php7.2
- image: friendicaci/php7.2:php7.2.22
- commands:
- - NOCOVERAGE=true NOINSTALL=true TEST_SELECTION=MEMCACHED ./autotest.sh mysql
- environment:
- MEMCACHED_HOST: memcached
-
-services:
-- name: memcached
- image: memcached
-
-trigger:
- branch:
-# - master
- - develop
-# - "*-rc"
-# event:
-# - pull_request
-# - push
----
-kind: pipeline
-name: memcached-php7.3
-
-steps:
-- name: memcached-php7.3
- image: friendicaci/php7.3:php7.3.9
- commands:
- - NOCOVERAGE=true NOINSTALL=true TEST_SELECTION=MEMCACHED ./autotest.sh mysql
- environment:
- MEMCACHED_HOST: memcached
-
-services:
-- name: memcached
- image: memcached
-
-trigger:
- branch:
-# - master
- - develop
-# - "*-rc"
-# event:
-# - pull_request
-# - push
+ - name: Install dependencies
+ image: composer
+ commands:
+ - ./bin/composer.phar run cs:install
+ - name: Run coding standards check
+ image: friendicaci/php-cs
+ commands:
+ - export CHANGED_FILES="$(git diff --name-status ${DRONE_COMMIT_BEFORE}..${DRONE_COMMIT_AFTER} | grep ^A | cut -f2)"
+ - /check-php-cs.sh