Skip to content

Commit b801b6f

Browse files
committed
make txtar
1 parent 408abdd commit b801b6f

2 files changed

Lines changed: 5 additions & 11 deletions

File tree

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ vendor:
1111
bin: vendor
1212

1313
test-%: %
14-
export PATH="$(shell pwd)/$*:$(shell echo $$PATH)" && \
14+
PATH="$(shell pwd)/$*:$(shell echo $$PATH)" \
1515
go test -count=1 ./...
1616

1717
tests/data/releases-%.json: FORCE
@@ -20,6 +20,8 @@ tests/data/releases-%.json: FORCE
2020
resources/all-versions.json: bin tests/data/releases-5.json tests/data/releases-7.json tests/data/releases-8.json
2121
./bin/update-all-versions
2222

23-
txtar: bin resources/all-versions.json
23+
--go-generate:
2424
go generate ./...
25-
UPDATE_SCRIPTS=1 PATH=$(shell pwd)/bin:$$PATH go test ./...
25+
26+
txtar: resources/all-versions.json --go-generate
27+
$(MAKE) UPDATE_SCRIPTS=1 test-bin

composer.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,11 @@
6262
"sort-packages": true
6363
},
6464
"scripts": {
65-
"data:update": [
66-
"curl 'https://www.php.net/releases/index.php?json&max=1000&version=5' | jq . > ./tests/data/releases-5.json",
67-
"curl 'https://www.php.net/releases/index.php?json&max=1000&version=7' | jq . > ./tests/data/releases-7.json",
68-
"curl 'https://www.php.net/releases/index.php?json&max=1000&version=8' | jq . > ./tests/data/releases-8.json",
69-
"@php ./bin/update-all-versions",
70-
"XDEBUG_MODE=off pest --update-snapshots"
71-
],
7265
"lint": [
7366
"pint --test",
7467
"phpstan analyse"
7568
],
7669
"pest": "pest",
77-
"pest:e2e": "XDEBUG_MODE=off pest --group=e2e",
7870
"pest:unit": "pest --group=unit"
7971
}
8072
}

0 commit comments

Comments
 (0)