aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile25
1 files changed, 16 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index ffbe102a..0686454f 100755
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,13 @@
1TMP_FOLDER=/tmp 1TMP_FOLDER=/tmp
2RELEASE_FOLDER=wllbg-release 2RELEASE_FOLDER=wllbg-release
3 3
4ifndef ENV 4ENV ?= prod
5 ENV=prod
6endif
7 5
8help: ## Display this help menu 6help: ## Display this help menu
9 @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' 7 @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
10 8
11clean: ## Clear the application cache 9clean: ## Clear the application cache
12 @rm -rf var/cache/* 10 rm -rf var/cache/*
13 11
14install: ## Install wallabag with the latest version 12install: ## Install wallabag with the latest version
15 @sh scripts/install.sh $(ENV) 13 @sh scripts/install.sh $(ENV)
@@ -26,8 +24,19 @@ run: ## Run the wallabag built-in server
26build: ## Run webpack 24build: ## Run webpack
27 @npm run build:$(ENV) 25 @npm run build:$(ENV)
28 26
29test: ## Launch wallabag testsuite 27prepare: clean ## Prepare database for testsuite
30 @ant prepare && bin/simple-phpunit -v 28ifdef DB
29 cp app/config/tests/parameters_test.$(DB).yml app/config/parameters_test.yml
30endif
31 -php bin/console doctrine:database:drop --force --env=test
32 php bin/console doctrine:database:create --env=test
33 php bin/console doctrine:migrations:migrate --no-interaction --env=test
34
35fixtures: ## Load fixtures into database
36 php bin/console doctrine:fixtures:load --no-interaction --env=test
37
38test: prepare fixtures ## Launch wallabag testsuite
39 bin/simple-phpunit -v
31 40
32release: ## Create a package. Need a VERSION parameter (eg: `make release VERSION=master`). 41release: ## Create a package. Need a VERSION parameter (eg: `make release VERSION=master`).
33ifndef VERSION 42ifndef VERSION
@@ -35,11 +44,9 @@ ifndef VERSION
35endif 44endif
36 @sh scripts/release.sh $(VERSION) $(TMP_FOLDER) $(RELEASE_FOLDER) $(ENV) 45 @sh scripts/release.sh $(VERSION) $(TMP_FOLDER) $(RELEASE_FOLDER) $(ENV)
37 46
38travis: ## Make some stuff for Travis-CI
39
40deploy: ## Deploy wallabag 47deploy: ## Deploy wallabag
41 @bundle exec cap staging deploy 48 @bundle exec cap staging deploy
42 49
43.PHONY: help clean install update build test release travis deploy run dev 50.PHONY: help clean prepare install fixtures update build test release deploy run dev
44 51
45.DEFAULT_GOAL := install 52.DEFAULT_GOAL := install