-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (32 loc) · 839 Bytes
/
Makefile
File metadata and controls
42 lines (32 loc) · 839 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
CURRENT_VERSION:=$(shell jq ".version" -r composer.json)
.PHONY: all
all: test
.PHONY: install_composer
install_composer:
curl -sS https://getcomposer.org/installer | php
.PHONY: install_dependencies
install_dependencies: install_composer
php composer.phar install
.PHONY: update
update:
php composer.phar update
.PHONY: test
test: install_dependencies
vendor/bin/phpunit tests/
vendor/bin/phpcs tests/ src/Cronofy.php --standard=ruleset.xml
.PHONY: smoke-test
smoke-test:
source .env && php ./dev-smoke-test.php
.PHONY: ci
ci: test
.PHONY: check_dependencies
check_dependencies:
@command -v jq >/dev/null || (echo "jq not installed please install via homebrew - 'brew install jq'"; exit 1)
.PHONY: release
release: check_dependencies test
git push
git tag $(CURRENT_VERSION)
git push --tags
.PHONY: init
init:
./init