Skip to content

Commit

Permalink
23.0.0-dev
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <[email protected]>
  • Loading branch information
ArtificialOwl committed Jul 19, 2021
1 parent a4d8572 commit 8a0048a
Show file tree
Hide file tree
Showing 16 changed files with 82 additions and 51 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Changelog

### 21.0.0

### 23.0.0

- better load of the libs


### 20.0.1

- compat nc21

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
app_name=FullTextSearch

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.0
version=23.0.0-dev
since_tag=21.0.1

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 @@ Core App of the full-text search framework for your Nextcloud.
]]>
</description>
<version>21.0.0</version>
<version>23.0.0-dev</version>
<licence>agpl</licence>
<author>Maxence Lange</author>
<namespace>FullTextSearch</namespace>
Expand All @@ -23,7 +23,7 @@ Core App of the full-text search framework for your Nextcloud.
<repository>https://github.com/nextcloud/fulltextsearch.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>

<background-jobs>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
}
},
"require": {
"daita/my-small-php-tools": "~22"
"artificial-owl/my-small-php-tools": "~23"
}
}
22 changes: 11 additions & 11 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Command/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
namespace OCA\FullTextSearch\Command;


use daita\MySmallPhpTools\Traits\TArrayTools;
use ArtificialOwl\MySmallPhpTools\Traits\TArrayTools;
use Exception;
use OC\Core\Command\InterruptedException;
use OCA\FullTextSearch\ACommandBase;
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/Live.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
namespace OCA\FullTextSearch\Command;


use daita\MySmallPhpTools\Traits\TArrayTools;
use ArtificialOwl\MySmallPhpTools\Traits\TArrayTools;
use Exception;
use OC\Core\Command\InterruptedException;
use OCA\FullTextSearch\ACommandBase;
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
namespace OCA\FullTextSearch\Controller;


use daita\MySmallPhpTools\Traits\Nextcloud\TNCDataResponse;
use ArtificialOwl\MySmallPhpTools\Traits\Nextcloud\TNCDataResponse;
use Exception;
use OCA\FullTextSearch\AppInfo\Application;
use OCA\FullTextSearch\Model\SearchRequest;
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/IndexesRequestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
namespace OCA\FullTextSearch\Db;


use daita\MySmallPhpTools\Traits\TArrayTools;
use ArtificialOwl\MySmallPhpTools\Traits\TArrayTools;
use OCA\FullTextSearch\Model\Index;
use OCP\DB\QueryBuilder\IQueryBuilder;

Expand Down
2 changes: 1 addition & 1 deletion lib/Db/TickRequestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
namespace OCA\FullTextSearch\Db;


use daita\MySmallPhpTools\Traits\TArrayTools;
use ArtificialOwl\MySmallPhpTools\Traits\TArrayTools;
use OCA\FullTextSearch\Model\Tick;
use OCP\DB\QueryBuilder\IQueryBuilder;

Expand Down
2 changes: 1 addition & 1 deletion lib/Model/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
namespace OCA\FullTextSearch\Model;


use daita\MySmallPhpTools\Traits\TArrayTools;
use ArtificialOwl\MySmallPhpTools\Traits\TArrayTools;
use JsonSerializable;
use OCP\FullTextSearch\Model\IIndex;

Expand Down
2 changes: 1 addition & 1 deletion lib/Model/IndexOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
namespace OCA\FullTextSearch\Model;


use daita\MySmallPhpTools\Traits\TArrayTools;
use ArtificialOwl\MySmallPhpTools\Traits\TArrayTools;
use JsonSerializable;
use OCP\FullTextSearch\Model\IIndexOptions;

Expand Down
2 changes: 1 addition & 1 deletion lib/Model/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
namespace OCA\FullTextSearch\Model;


use daita\MySmallPhpTools\Traits\TArrayTools;
use ArtificialOwl\MySmallPhpTools\Traits\TArrayTools;
use Exception;
use OCA\FullTextSearch\ACommandBase;
use OCA\FullTextSearch\Exceptions\RunnerAlreadyUpException;
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/SearchRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
namespace OCA\FullTextSearch\Model;


use daita\MySmallPhpTools\Traits\TArrayTools;
use ArtificialOwl\MySmallPhpTools\Traits\TArrayTools;
use JsonSerializable;
use OCP\FullTextSearch\Model\ISearchRequest;
use OCP\FullTextSearch\Model\ISearchRequestSimpleQuery;
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/Tick.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
namespace OCA\FullTextSearch\Model;


use daita\MySmallPhpTools\Traits\TArrayTools;
use ArtificialOwl\MySmallPhpTools\Traits\TArrayTools;

/**
* Class Tick
Expand Down
2 changes: 1 addition & 1 deletion lib/Search/UnifiedSearchProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
namespace OCA\FullTextSearch\Search;


use daita\MySmallPhpTools\Traits\TArrayTools;
use ArtificialOwl\MySmallPhpTools\Traits\TArrayTools;
use Exception;
use OCA\FullTextSearch\Model\SearchRequest;
use OCA\FullTextSearch\Service\ConfigService;
Expand Down

0 comments on commit 8a0048a

Please sign in to comment.