Skip to content

Commit

Permalink
23.0.0-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtificialOwl committed Jul 20, 2021
1 parent b554072 commit 3eb5ad2
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 28 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Changelog


### 21.0.1
### 23.0.0

- display message on deleted index


### 20.0.1

- removing type from request to ES
- better management on error from ES
Expand Down
75 changes: 50 additions & 25 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,56 +1,80 @@
app_name=fulltextsearch_elasticsearch
app_name=FullTextSearch_ElasticSearch

project_dir=$(CURDIR)
build_dir=$(CURDIR)/build/artifacts
appstore_dir=$(build_dir)/appstore
source_dir=$(build_dir)/source
sign_dir=$(build_dir)/sign
package_name=$(app_name)
cert_dir=$(HOME)/.nextcloud/certificates
github_account=nextcloud
release_account=nextcloud-releases
branch=master
codecov_token_dir=$(HOME)/.nextcloud/codecov_token
version+=21.0.1
version=20.0.2
since_tag=

all: appstore

release: appstore github-release github-upload

dev-setup: clean composer

github-release:
if [ -z "$(release_account)" ]; then \
release_account=$(github_account); \
release_branch=$(branch); \
else \
release_account=$(release_account); \
release_branch=master; \
fi; \
if [ -z "$(since_tag)" ]; then \
latest_tag=$$(git describe --tags `git rev-list --tags --max-count=1`); \
else \
latest_tag=$(since_tag); \
fi; \
comparison="$$latest_tag..HEAD"; \
if [ -z "$$latest_tag" ]; then comparison=""; fi; \
changelog=$$(git log $$comparison --oneline --no-merges | sed -e 's/^/$(github_account)\/$(app_name)@/'); \
github-release release \
--user $(github_account) \
--user $$release_account \
--repo $(app_name) \
--target $(branch) \
--tag v$(version) \
--name "$(app_name) v$(version)"
--target $$release_branch \
--tag $(version) \
--description "**Changelog**<br/>$$changelog" \
--name "$(app_name) v$(version)"; \
if [ $(github_account) != $$release_account ]; then \
link="https://github.com/$$release_account/$(app_name)/releases/download/$(version)/$(app_name)-$(version).tar.gz";\
github-release release \
--user $(github_account) \
--repo $(app_name) \
--target $(branch) \
--tag $(version) \
--description "**Download**<br />$$link<br /><br />**Changelog**<br/>$$changelog<br />" \
--name "$(app_name) v$(version)"; \
fi; \


github-upload:
if [ -z "$(release_account)" ]; then \
release_account=$(github_account); \
else \
release_account=$(release_account); \
fi; \
github-release upload \
--user $(github_account) \
--user $$release_account \
--repo $(app_name) \
--tag v$(version) \
--tag $(version) \
--name "$(app_name)-$(version).tar.gz" \
--file $(build_dir)/$(app_name)-$(version).tar.gz


clean:
rm -rf $(build_dir)
rm -rf node_modules
rm -rf vendor

# composer packages
composer:
composer install --prefer-dist
composer update --prefer-dist

test: SHELL:=/bin/bash
test:
phpunit --coverage-clover=coverage.xml --configuration=tests/phpunit.xml tests
@if [ -f $(codecov_token_dir)/$(app_name) ]; then \
bash <(curl -s https://codecov.io/bash) -t @$(codecov_token_dir)/$(app_name) ; \
fi
composer upgrade --prefer-dist

appstore: dev-setup
appstore: clean composer
mkdir -p $(sign_dir)
rsync -a \
--exclude=/build \
Expand All @@ -60,18 +84,19 @@ appstore: dev-setup
--exclude=/tests \
--exclude=.git \
--exclude=/.github \
--exclude=/composer.json \
--exclude=/composer.lock \
--exclude=/l10n/l10n.pl \
--exclude=/CONTRIBUTING.md \
--exclude=/issue_template.md \
--exclude=/README.md \
--exclude=/composer.json \
--exclude=/testConfiguration.json \
--exclude=/composer.lock \
--exclude=/.gitattributes \
--exclude=/.gitignore \
--exclude=/.scrutinizer.yml \
--exclude=/.travis.yml \
--exclude=/Makefile \
$(project_dir)/ $(sign_dir)/$(app_name)
./ $(sign_dir)/$(app_name)
tar -czf $(build_dir)/$(app_name)-$(version).tar.gz \
-C $(sign_dir) $(app_name)
@if [ -f $(cert_dir)/$(app_name).key ]; then \
Expand Down
4 changes: 2 additions & 2 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Extension to the _Full text search_ app to communicate with ElasticSearch.
]]>
</description>
<version>21.0.1</version>
<version>23.0.0-dev</version>
<licence>agpl</licence>
<author>Maxence Lange</author>
<namespace>FullTextSearch_Elasticsearch</namespace>
Expand All @@ -23,7 +23,7 @@ Extension to the _Full text search_ app to communicate with ElasticSearch.
<repository>https://github.com/nextcloud/fulltextsearch_elasticsearch.git</repository>
<screenshot>https://raw.githubusercontent.com/nextcloud/fulltextsearch/master/screenshots/0.3.0.png</screenshot>
<dependencies>
<nextcloud min-version="21" max-version="21"/>
<nextcloud min-version="23" max-version="23"/>
</dependencies>

<commands>
Expand Down

0 comments on commit 3eb5ad2

Please sign in to comment.