aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-10-13 12:05:08 +0200
committerArthurHoaro <arthur@hoa.ro>2020-10-13 12:05:08 +0200
commitb6f678a5a1d15acf284ebcec16c905e976671ce1 (patch)
tree33c7da831482ed79c44896ef19c73c72ada84f2e /Makefile
parentb14687036b9b800681197f51fdc47e62f0c88e2e (diff)
parent1c1520b6b98ab20201bfe15577782a52320339df (diff)
downloadShaarli-b6f678a5a1d15acf284ebcec16c905e976671ce1.tar.gz
Shaarli-b6f678a5a1d15acf284ebcec16c905e976671ce1.tar.zst
Shaarli-b6f678a5a1d15acf284ebcec16c905e976671ce1.zip
Merge branch 'v0.12' into latest
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 286d2c90..0ff6bd3f 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
3 3
4BIN = vendor/bin 4BIN = vendor/bin
5 5
6all: static_analysis_summary check_permissions test 6all: check_permissions test
7 7
8## 8##
9# Docker test adapter 9# Docker test adapter
@@ -80,10 +80,15 @@ locale_test_%:
80 --testsuite language-$(firstword $(subst _, ,$*)) 80 --testsuite language-$(firstword $(subst _, ,$*))
81 81
82all_tests: test locale_test_de_DE locale_test_en_US locale_test_fr_FR 82all_tests: test locale_test_de_DE locale_test_en_US locale_test_fr_FR
83 @$(BIN)/phpcov merge --html coverage coverage 83 @# --The current version is not compatible with PHP 7.2
84 @#$(BIN)/phpcov merge --html coverage coverage
84 @# --text doesn't work with phpunit 4.* (v5 requires PHP 5.6) 85 @# --text doesn't work with phpunit 4.* (v5 requires PHP 5.6)
85 @#$(BIN)/phpcov merge --text coverage/txt coverage 86 @#$(BIN)/phpcov merge --text coverage/txt coverage
86 87
88### download 3rd-party PHP libraries, including dev dependencies
89composer_dependencies_dev: clean
90 composer install --prefer-dist
91
87## 92##
88# Custom release archive generation 93# Custom release archive generation
89# 94#
@@ -122,7 +127,8 @@ release_tar: composer_dependencies htmldoc translate build_frontend
122### generate a release zip and include 3rd-party dependencies and translations 127### generate a release zip and include 3rd-party dependencies and translations
123release_zip: composer_dependencies htmldoc translate build_frontend 128release_zip: composer_dependencies htmldoc translate build_frontend
124 git archive --prefix=$(ARCHIVE_PREFIX) -o $(ARCHIVE_VERSION).zip -9 HEAD 129 git archive --prefix=$(ARCHIVE_PREFIX) -o $(ARCHIVE_VERSION).zip -9 HEAD
125 mkdir -p $(ARCHIVE_PREFIX)/{doc,vendor} 130 mkdir -p $(ARCHIVE_PREFIX)/doc
131 mkdir -p $(ARCHIVE_PREFIX)/vendor
126 rsync -a doc/html/ $(ARCHIVE_PREFIX)doc/html/ 132 rsync -a doc/html/ $(ARCHIVE_PREFIX)doc/html/
127 zip -r $(ARCHIVE_VERSION).zip $(ARCHIVE_PREFIX)doc/ 133 zip -r $(ARCHIVE_VERSION).zip $(ARCHIVE_PREFIX)doc/
128 rsync -a vendor/ $(ARCHIVE_PREFIX)vendor/ 134 rsync -a vendor/ $(ARCHIVE_PREFIX)vendor/
@@ -154,6 +160,7 @@ phpdoc: clean
154htmldoc: 160htmldoc:
155 python3 -m venv venv/ 161 python3 -m venv venv/
156 bash -c 'source venv/bin/activate; \ 162 bash -c 'source venv/bin/activate; \
163 pip install wheel; \
157 pip install mkdocs; \ 164 pip install mkdocs; \
158 mkdocs build --clean' 165 mkdocs build --clean'
159 find doc/html/ -type f -exec chmod a-x '{}' \; 166 find doc/html/ -type f -exec chmod a-x '{}' \;
@@ -171,4 +178,4 @@ eslint:
171 178
172### Run CSSLint check against Shaarli's SCSS files 179### Run CSSLint check against Shaarli's SCSS files
173sasslint: 180sasslint:
174 @yarn run sass-lint -c .dev/.sasslintrc 'assets/default/scss/*.scss' -v -q 181 @yarn run stylelint --config .dev/.stylelintrc.js 'assets/default/scss/*.scss'