Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Figueroa <amenadiel@gmail.com>2018-05-30 21:38:59 +0300
committerFelipe Figueroa <amenadiel@gmail.com>2018-05-30 21:38:59 +0300
commit750628a6976232812ba85ed79a302ea0dc902fae (patch)
treeeb334be7cab4e2fd24bd8e6280a2e99274e081ed /Makefile
parent1fbc32387cd65318a2d5466888543761f90ded27 (diff)
only try to disable xdebug if xd_swi is installed
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b0b022d9..a034d91b 100644
--- a/Makefile
+++ b/Makefile
@@ -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