File: Makefile

package info (click to toggle)
php-di 7.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,932 kB
  • sloc: php: 10,572; makefile: 42; xml: 17; sh: 10; pascal: 5
file content (31 lines) | stat: -rw-r--r-- 727 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
test-get: prepare
	blackfire run --samples=100 php get.php
test-get-cache: prepare
	blackfire run --samples=100 php get-cache.php
test-get-object: prepare
	blackfire run --samples=100 php get-object.php
test-factory: prepare
	blackfire run --samples=100 php factory.php
test-call: prepare
	blackfire run --samples=100 php call.php

prepare: clean vendor validate warmup
	@composer install --classmap-authoritative

warmup:
	@set -e
	@php call.php
	@php factory.php
	@php get.php
	@php get-cache.php
	@php get-object.php

clean:
	@rm -f tmp/*

vendor: composer.json
	composer update --classmap-authoritative

validate:
	@set -e
	@php -r "if (extension_loaded('xdebug')) { echo 'XDebug must not be loaded' . PHP_EOL; exit(1); }"