From 78fd4d3ee9940bde6d0bef8c611c6a19595e81fd Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 7 Dec 2015 18:34:02 -0500 Subject: Add action in Makefile to create archive with tests --- ChangeLog | 5 +++-- Makefile | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 06fbe4af..3a2513ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,14 +16,15 @@ Breaking changes: New features: -* Add pluggable authentication and authorization system (Work in progress) +* Add pluggable authentication and authorization system (full rewrite) * Add groups (teams/organization) * Add LDAP groups synchronization * Add project groups permissions -* Add new project role Viewer (Work in progress) +* Add new project role Viewer * Add generic LDAP client library * Add search query attribute for task link * Add the possibility to define API token in config file +* Add capability to reopen Gitlab issues Version 1.0.21 -------------- diff --git a/Makefile b/Makefile index 6dd38659..5aa0752e 100644 --- a/Makefile +++ b/Makefile @@ -77,6 +77,31 @@ archive: @ 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/*.lock + @ rm -rf ${BUILD_DIR}/kanboard/*.json + @ 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: @ phpunit -c tests/units.sqlite.xml -- cgit v1.2.3