Skip to content

Commit e30b77e

Browse files
authored
build: Rename dist to var (#28)
1 parent 86a6bcf commit e30b77e

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
/lsp/
1010
/tests/Integration/var/cache/
1111
/tests/Integration/var/logs/
12+
/var/
1213
/vendor-bin/*/vendor/
1314
/vendor/

.php-cs-fixer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
->in(__DIR__)
1717
->exclude([
1818
'dist',
19+
'var',
1920
]);
2021

2122
$header = trim(
@@ -28,6 +29,6 @@
2829
));
2930

3031
$config = new FidryConfig($header, 81_000);
31-
$config->setCacheFile(__DIR__.'/dist/.php-cs-fixer.cache');
32+
$config->setCacheFile(__DIR__.'/var/.php-cs-fixer.cache');
3233

3334
return $config->setFinder($finder);

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MAKEFLAGS += --no-builtin-rules
66
COMPOSER = $(shell which composer)
77

88
SRC_TESTS_FILES=$(shell find src/ tests/ -type f) phpunit.xml.dist
9-
COVERAGE_DIR = dist/coverage
9+
COVERAGE_DIR = var/coverage
1010
COVERAGE_XML = $(COVERAGE_DIR)/xml
1111
COVERAGE_HTML = $(COVERAGE_DIR)/html
1212
TARGET_MSI = 100
@@ -69,7 +69,7 @@ php_cs_fixer: $(PHP_CS_FIXER_BIN)
6969
$(PHP_CS_FIXER)
7070

7171
.PHONY: php_cs_fixer_lint
72-
php_cs_fixer_lint: $(PHP_CS_FIXER_BIN) dist
72+
php_cs_fixer_lint: $(PHP_CS_FIXER_BIN) var
7373
$(PHP_CS_FIXER)
7474

7575
.PHONY: rector
@@ -79,7 +79,7 @@ ifndef SKIP_RECTOR
7979
endif
8080

8181
.PHONY: rector_lint
82-
rector_lint: $(RECTOR_BIN) dist
82+
rector_lint: $(RECTOR_BIN) var
8383
ifndef SKIP_RECTOR
8484
$(RECTOR) --dry-run
8585
endif
@@ -95,23 +95,23 @@ composer_validate: vendor
9595

9696
.PHONY: phpunit
9797
phpunit: ## Runs PHPUnit
98-
phpunit: $(PHPUNIT_BIN) dist vendor
98+
phpunit: $(PHPUNIT_BIN) var vendor
9999
$(PHPUNIT)
100100

101101
.PHONY: phpunit_coverage_infection
102102
phpunit_coverage_infection: ## Runs PHPUnit with code coverage for Infection
103-
phpunit_coverage_infection: $(PHPUNIT_BIN) dist vendor
103+
phpunit_coverage_infection: $(PHPUNIT_BIN) var vendor
104104
$(PHPUNIT_COVERAGE_INFECTION)
105105

106106
.PHONY: phpunit_coverage_html
107107
phpunit_coverage_html: ## Runs PHPUnit with code coverage with HTML report
108-
phpunit_coverage_html: $(PHPUNIT_BIN) dist vendor
108+
phpunit_coverage_html: $(PHPUNIT_BIN) var vendor
109109
$(PHPUNIT_COVERAGE_HTML)
110110
@echo "You can check the report by opening the file \"$(COVERAGE_HTML)/index.html\"."
111111

112112
.PHONY: infection
113113
infection: ## Runs infection
114-
infection: $(INFECTION_BIN) $(COVERAGE_DIR) dist vendor
114+
infection: $(INFECTION_BIN) $(COVERAGE_DIR) var vendor
115115
if [ -d $(COVERAGE_DIR)/coverage-xml ]; then $(INFECTION); fi
116116

117117

@@ -149,6 +149,6 @@ ifndef SKIP_RECTOR
149149
touch -c $@
150150
endif
151151

152-
dist:
153-
mkdir -p dist
152+
var:
153+
mkdir -p var
154154
touch $@

infection.json.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
]
88
},
99
"logs": {
10-
"text": "dist/infection.log"
10+
"text": "var/infection.log"
1111
},
12-
"tmpDir": "dist/infection",
12+
"tmpDir": "var/infection",
1313
"mutators": {
1414
"@default": true,
1515
"MBString": false,

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
displayDetailsOnTestsThatTriggerWarnings="true"
1111
displayDetailsOnTestsThatTriggerErrors="true"
1212
executionOrder="duration"
13-
cacheResultFile="dist/.phpunit.result.cache">
13+
cacheResultFile="var/.phpunit.result.cache">
1414
<php>
1515
<ini name="error_reporting" value="-1"/>
1616
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0"/>

0 commit comments

Comments
 (0)