summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 3 insertions, 30 deletions
diff --git a/Makefile b/Makefile
index f44475f6..d3ccf485 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ CSS_VENDOR = $(addprefix assets/css/vendor/, $(addsuffix .css, jquery-ui.min jqu
JS_APP = $(addprefix assets/js/src/, $(addsuffix .js, Namespace App Dropdown Popover Notification Accordion Session Calendar AvgTimeColumnChart BurndownChart CompareHoursColumnChart CumulativeFlowDiagram LeadCycleTimeChart UserRepartitionChart TaskTimeColumnChart TaskRepartitionChart Gantt Column Markdown ProjectPermission ProjectCreation Screenshot FileUpload Search Task Subtask Swimlane BoardColumnView BoardColumnScrolling BoardHorizontalScrolling BoardCollapsedMode BoardDragAndDrop BoardTask BoardPolling Tooltip Bootstrap))
JS_VENDOR = $(addprefix assets/js/vendor/, $(addsuffix .js, jquery-1.11.3.min jquery-ui.min jquery-ui-timepicker-addon.min jquery.ui.touch-punch.min chosen.jquery.min moment.min fullcalendar.min mousetrap.min mousetrap-global-bind.min simplemde.min))
-JS_LANG = $(addprefix assets/js/vendor/lang/, $(addsuffix .js, cs da de es el fi fr hu id it ja nl nb pl pt pt-br ru sv sr th tr zh-cn))
+JS_LANG = $(addprefix assets/js/vendor/lang/, $(addsuffix .js, cs da de es el fi fr hu id it ja ko nl nb pl pt pt-br ru sv sr th tr zh-cn))
all: css js
@@ -56,6 +56,7 @@ archive:
@ rm -rf ${BUILD_DIR}/kanboard/Makefile
@ rm -rf ${BUILD_DIR}/kanboard/Vagrantfile
@ rm -rf ${BUILD_DIR}/kanboard/Dockerfile
+ @ rm -rf ${BUILD_DIR}/kanboard/docker-compose.yml
@ rm -rf ${BUILD_DIR}/kanboard/.*.yml
@ rm -rf ${BUILD_DIR}/kanboard/*.md
@ rm -rf ${BUILD_DIR}/kanboard/*.markdown
@@ -71,40 +72,12 @@ archive:
@ find ${BUILD_DIR}/kanboard/vendor -name .travis.yml -delete
@ find ${BUILD_DIR}/kanboard/vendor -name README.* -delete
@ find ${BUILD_DIR}/kanboard/vendor -name .gitignore -delete
- @ cd ${BUILD_DIR}/kanboard && sed -i.bak s/master/${version}/g app/constants.php && rm -f app/*.bak
+ @ cd ${BUILD_DIR}/kanboard && sed -i.bak 11s/.*/"define('APP_VERSION', '${version}');"/g app/constants.php && rm -f app/*.bak
@ cd ${BUILD_DIR} && zip -r kanboard-${version}.zip kanboard > /dev/null
@ cd ${BUILD_DIR} && mv kanboard-${version}.zip ${dst}
@ cd ${dst} && if [ -L kanboard-latest.zip ]; then unlink kanboard-latest.zip; ln -s kanboard-${version}.zip kanboard-latest.zip; fi
@ rm -rf ${BUILD_DIR}/kanboard
-test-archive:
- @ echo "Build archive with tests: version=${version}, destination=${dst}"
- @ rm -rf ${BUILD_DIR}/kanboard ${BUILD_DIR}/kanboard-*.zip
- @ cd ${BUILD_DIR} && git clone --depth 1 -q https://github.com/fguillot/kanboard.git
- @ cd ${BUILD_DIR}/kanboard && composer --prefer-dist --optimize-autoloader --quiet install
- @ rm -rf ${BUILD_DIR}/kanboard/data/*
- @ rm -rf ${BUILD_DIR}/kanboard/.git*
- @ rm -rf ${BUILD_DIR}/kanboard/.*.yml
- @ rm -rf ${BUILD_DIR}/kanboard/*.md
- @ rm -rf ${BUILD_DIR}/kanboard/*.markdown
- @ rm -rf ${BUILD_DIR}/kanboard/Dockerfile
- @ rm -rf ${BUILD_DIR}/kanboard/.docker
- @ rm -rf ${BUILD_DIR}/kanboard/Vagrantfile
- @ rm -rf ${BUILD_DIR}/kanboard/app.json
- @ rm -rf ${BUILD_DIR}/kanboard/plugins/.gitignore
- @ cd ${BUILD_DIR}/kanboard && find ./vendor -name notes -type d -exec rm -rf {} +;
- @ cd ${BUILD_DIR}/kanboard && find ./vendor -name test -type d -exec rm -rf {} +;
- @ cd ${BUILD_DIR}/kanboard && find ./vendor -name tests -type d -exec rm -rf {} +;
- @ find ${BUILD_DIR}/kanboard/vendor -name composer.json -delete
- @ find ${BUILD_DIR}/kanboard/vendor -name phpunit.xml -delete
- @ find ${BUILD_DIR}/kanboard/vendor -name .travis.yml -delete
- @ find ${BUILD_DIR}/kanboard/vendor -name README.* -delete
- @ find ${BUILD_DIR}/kanboard/vendor -name .gitignore -delete
- @ cd ${BUILD_DIR}/kanboard && sed -i.bak s/master/${version}/g app/constants.php && rm -f app/*.bak
- @ cd ${BUILD_DIR} && zip -r kanboard-${version}.zip kanboard > /dev/null
- @ cd ${BUILD_DIR} && mv kanboard-${version}.zip ${dst}
- @ rm -rf ${BUILD_DIR}/kanboard
-
test-sqlite-coverage:
@ phpunit --coverage-html /tmp/coverage --whitelist app/ -c tests/units.sqlite.xml