-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
57 lines (44 loc) · 1.7 KB
/
Makefile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#
# JBZoo Toolbox - CI-Report-Converter.
#
# This file is part of the JBZoo Toolbox project.
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @license MIT
# @copyright Copyright (C) JBZoo.com, All rights reserved.
# @see https://github.com/JBZoo/CI-Report-Converter
#
.PHONY: build
ifneq (, $(wildcard ./vendor/jbzoo/codestyle/src/init.Makefile))
include ./vendor/jbzoo/codestyle/src/init.Makefile
endif
build: ##@Project Install all 3rd party dependencies
$(call title,"Install/Update all 3rd party dependencies")
@composer install
@make build-phar
@make create-symlink
build-docker:
$(call title,"Building Docker Image")
@docker build -t jbzoo-ci-report-converter .
update: ##@Project Install/Update all 3rd party dependencies
@echo "Composer flags: $(JBZOO_COMPOSER_UPDATE_FLAGS)"
@composer update $(JBZOO_COMPOSER_UPDATE_FLAGS)
@make build-phar
test-all: ##@Project Run all project tests at once
@make create-symlink
@make test
@make codestyle
create-symlink: ##@Project Create Symlink (alias for testing)
@ln -sfv `pwd`/ci-report-converter `pwd`/vendor/bin/ci-report-converter
test-example:
@-$(PHP_BIN) ./vendor/phpunit/phpunit/phpunit \
--configuration ./phpunit.xml.dist \
./tests/ExampleTest.php \
--order-by=default
@cp ./build/coverage_junit/main.xml ./tests/fixtures/phpunit/junit.xml
@-$(PHP_BIN) ./vendor/phpunit/phpunit/phpunit \
--configuration ./phpunit.xml.dist \
./tests/ExampleTest.php \
--order-by=default \
--teamcity > ./tests/fixtures/phpunit/teamcity-real.txt