-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathMakefile
33 lines (24 loc) · 777 Bytes
/
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
OPTS ?= ""
all: test 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)
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