-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (34 loc) · 1001 Bytes
/
Makefile
File metadata and controls
44 lines (34 loc) · 1001 Bytes
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
export GOFLAGS=-mod=mod
.PHONY: FORCE
FORCE:;
.PHONY: vendor
vendor:
composer install --no-dev --prefer-dist
composer reinstall --prefer-dist '*'
bin: vendor
phar: vendor
box compile
box verify phar/php-matrix
box info phar/php-matrix
php phar/php-matrix --version
test-%: %
PATH="$(shell pwd)/$*:$(shell echo $$PATH)" \
go test -count=1 -shuffle=on ./...
.PHONY: tests/data/versions
tests/data/versions: MAJORS := 5 7 8
tests/data/versions:
rm -rf tests/data/versions
mkdir -p tests/data/versions
$(MAKE) $(foreach MAJOR,$(MAJORS),tests/data/versions/v$(MAJOR).json)
tests/data/versions/v%.json: FORCE
curl 'https://www.php.net/releases/index.php?json&max=1000&version=$*' | \
jq . > tests/data/versions/v$*.json
.PHONY: data/all-versions.json
data/all-versions.json: bin
./bin/update-all-versions
.PHONY: version-data
version-data: data/all-versions.json tests/data/versions
.PHONY: txtar
txtar: data/all-versions.json
go generate ./...
UPDATE_SCRIPTS=1 $(MAKE) test-bin