diff options
author | Felipe Figueroa <amenadiel@gmail.com> | 2018-05-30 21:38:59 +0300 |
---|---|---|
committer | Felipe Figueroa <amenadiel@gmail.com> | 2018-05-30 21:38:59 +0300 |
commit | 750628a6976232812ba85ed79a302ea0dc902fae (patch) | |
tree | eb334be7cab4e2fd24bd8e6280a2e99274e081ed /Makefile | |
parent | 1fbc32387cd65318a2d5466888543761f90ded27 (diff) |
only try to disable xdebug if xd_swi is installed
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -2,6 +2,8 @@ VERSION = $(shell cat composer.json | sed -n 's/.*"version": "\([^"]*\)",/\1/p') SHELL = /usr/bin/env bash +XDSWI := $(shell command -v xd_swi 2> /dev/null) + default: install .PHONY: tag install test csfixer create_testdb destroy_testdb run_local @@ -35,6 +37,8 @@ tag_and_push: git push git checkout develop + + tag: test update_version csfixer tag_and_push test: @@ -44,9 +48,14 @@ endif ./vendor/bin/codecept run unit --debug csfixer: - xd_swi off ;\ - ./vendor/bin/php-cs-fixer --verbose fix ;\ - xd_swi on + @if [[ "$(XDSWI)" == "" ]]; then \ + ./vendor/bin/php-cs-fixer --verbose fix ;\ + else \ + xd_swi off ;\ + ./vendor/bin/php-cs-fixer --verbose fix ;\ + xd_swi on ;\ + fi + create_testdb: PGPASSWORD=scrutinizer psql -U scrutinizer -h localhost -f tests/simpletest/data/ppatests_install.sql |