-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (29 loc) · 950 Bytes
/
Makefile
File metadata and controls
40 lines (29 loc) · 950 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
OPTS ?= ""
PHP = php
all: test test-help test-help-vcs-error md no-links only-dev only-prod json json-pretty
test:
$(PHP) ./composer-lock-diff --from test-data/composer.from.lock --to test-data/composer.to.lock $(OPTS)
test-help:
$(PHP) ./composer-lock-diff --help
test-help-vcs-error:
$(PHP) ./composer-lock-diff --vcs UNKNOWN ; test $$? -eq 1
md:
$(MAKE) test OPTS=--md
no-links:
$(MAKE) test OPTS=--no-links
only-dev:
$(MAKE) test OPTS=--only-dev
only-prod:
$(MAKE) test OPTS=--only-prod
json:
$(MAKE) test OPTS=--json
json-pretty:
$(MAKE) test OPTS="--json --pretty"
# Regenerate the lock files from the json. This is useful when adding new
# entries to test.
locks:
rm -rf test-data/composer.from.lock test-data/vendor
cd test-data && COMPOSER=composer.from.json composer install -v
rm -rf test-data/composer.to.lock test-data/vendor
cd test-data && COMPOSER=composer.to.json composer install -v
rm -rf test-data/vendor