Skip to content

Commit

Permalink
Add version check
Browse files Browse the repository at this point in the history
  • Loading branch information
egh committed May 17, 2022
1 parent 71635ac commit 8493bf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ VERSION=$(shell grep em:version extension/install.rdf | grep -o "[0-9\\.]*")

dist: test zotxt-$(VERSION).xpi ;

notest: zotxt-$(VERSION).xpi ;

zotxt-$(VERSION).xpi: extension/install.rdf extension/bootstrap.js extension/resource/translators/EasyKeyExporter.js
cd extension && zip -r ../zotxt-$(VERSION).xpi *

Expand Down
2 changes: 1 addition & 1 deletion test/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def test_select
def test_version
resp = @client.get(@version_url)
assert_equal 200, resp.status
assert_match(/^(5|6)/, JSON.parse(resp.body)['version'])
assert_match(/^6.0.2$/, JSON.parse(resp.body)['version'])
end

def test_locales
Expand Down

0 comments on commit 8493bf2

Please sign in to comment.