-
Notifications
You must be signed in to change notification settings - Fork 244
/
Makefile
47 lines (40 loc) · 1.28 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
test: remove-deps
make test-laravel
make test-lumen
test-laravel:
composer require laravel/framework
vendor/bin/phpunit
make uninstall-laravel
test-lumen:
composer require laravel/lumen-framework
vendor/bin/phpunit
make uninstall-lumen
remove-deps:
rm -rf vendor
rm composer.lock
uninstall-laravel:
make remove-deps
composer remove laravel/framework
make remove-deps
uninstall-lumen:
make remove-deps
composer remove laravel/lumen-framework
make remove-deps
# Ensures that the TAG variable was passed to the make command
check-tag:
$(if $(TAG),,$(error TAG is not defined. Pass via "make tag TAG=4.2.1"))
# Creates a release but does not push it. This task updates the changelog
# with the TAG environment variable, replaces the VERSION constant, ensures
# that the source is still valid after updating, commits the changelog and
# updated VERSION constant, creates an annotated git tag using chag, and
# prints out a diff of the last commit.
tag: check-tag
@echo Tagging $(TAG)
chag update $(TAG)
sed -i '' -e "s/VERSION = '.*'/VERSION = '$(TAG)'/" src/AwsServiceProvider.php
php -l src/AwsServiceProvider.php
git commit -a -m '$(TAG) release'
chag tag
@echo "Release has been created. Push using 'make release'"
@echo "Changes made in the release commit"
git diff HEAD~1 HEAD