Test Commit
This commit is contained in:
parent
bc27a597eb
commit
2b67b085ad
3 changed files with 122 additions and 97 deletions
14
Makefile
14
Makefile
|
@ -1,10 +1,9 @@
|
|||
# Variables
|
||||
DEFAULT_CONFIG ?= release
|
||||
DEFAULT_CONFIGURATION ?= release
|
||||
LOG_LEVEL = debug
|
||||
PACKAGE = build/$(CONFIG)/net.nosial.tgbotlib.ncc
|
||||
|
||||
# Default Target
|
||||
all: build
|
||||
all: release release-compressed release-executable release-executable-compressed debug debug-compressed
|
||||
|
||||
# Build Steps
|
||||
release:
|
||||
|
@ -20,16 +19,15 @@ debug:
|
|||
debug-compressed:
|
||||
ncc build --config=debug-compressed --log-level $(LOG_LEVEL)
|
||||
|
||||
build: release release-compressed release-executable release-executable-compressed debug debug-compressed
|
||||
|
||||
install: build
|
||||
ncc package install --package=$(PACKAGE) --skip-dependencies --build-source --reinstall -y --log-level $(LOG_LEVEL)
|
||||
install: release
|
||||
ncc package install --package=build/release/net.nosial.tgbotlib.ncc --skip-dependencies --build-source --reinstall -y --log-level $(LOG_LEVEL)
|
||||
|
||||
test: build
|
||||
test: release
|
||||
[ -f phpunit.xml ] || { echo "phpunit.xml not found"; exit 1; }
|
||||
phpunit
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
|
||||
.PHONY: all build install test clean
|
||||
.PHONY: all install test clean release release-compressed release-executable release-executable-compressed debug debug-compressed
|
Loading…
Add table
Add a link
Reference in a new issue