Skip to content

Commit

Permalink
jsonschemas: update licenses schema fields
Browse files Browse the repository at this point in the history
* Close #22
  • Loading branch information
ChiaraBi committed Feb 7, 2018
1 parent 0de19e8 commit 8f8fe63
Show file tree
Hide file tree
Showing 5 changed files with 1,240 additions and 1,224 deletions.
23 changes: 13 additions & 10 deletions .travis.yml
Expand Up @@ -38,25 +38,28 @@ cache:
services:
- mysql
- postgresql
- elasticsearch

env:
- REQUIREMENTS=lowest EXTRAS=all,sqlite SQLALCHEMY_DATABASE_URI="sqlite:///test.db"
- REQUIREMENTS=lowest EXTRAS=all,mysql SQLALCHEMY_DATABASE_URI="mysql+pymysql://travis@localhost:3306/invenio"
- REQUIREMENTS=lowest EXTRAS=all,postgresql SQLALCHEMY_DATABASE_URI="postgresql+psycopg2://postgres@localhost:5432/invenio"
- REQUIREMENTS=release EXTRAS=all,sqlite SQLALCHEMY_DATABASE_URI="sqlite:///test.db"
- REQUIREMENTS=release EXTRAS=all,mysql SQLALCHEMY_DATABASE_URI="mysql+pymysql://travis@localhost:3306/invenio"
- REQUIREMENTS=release E2E_WEBDRIVER_BROWSERS="Firefox" EXTRAS=all,postgresql SQLALCHEMY_DATABASE_URI="postgresql+psycopg2://postgres@localhost:5432/invenio"
- REQUIREMENTS=devel EXTRAS=all,sqlite SQLALCHEMY_DATABASE_URI="sqlite:///test.db"
- REQUIREMENTS=devel EXTRAS=all,mysql SQLALCHEMY_DATABASE_URI="mysql+pymysql://travis@localhost:3306/invenio"
- REQUIREMENTS=devel EXTRAS=all,postgresql SQLALCHEMY_DATABASE_URI="postgresql+psycopg2://postgres@localhost:5432/invenio"
- REQUIREMENTS=lowest EXTRAS=all,sqlite SQLALCHEMY_DATABASE_URI="sqlite:///test.db" ES_VERSION=2.2.0
- REQUIREMENTS=lowest EXTRAS=all,mysql SQLALCHEMY_DATABASE_URI="mysql+pymysql://travis@localhost:3306/invenio" ES_VERSION=2.2.0
- REQUIREMENTS=lowest EXTRAS=all,postgresql SQLALCHEMY_DATABASE_URI="postgresql+psycopg2://postgres@localhost:5432/invenio" ES_VERSION=2.2.0
- REQUIREMENTS=release EXTRAS=all,sqlite SQLALCHEMY_DATABASE_URI="sqlite:///test.db" ES_VERSION=2.2.0
- REQUIREMENTS=release EXTRAS=all,mysql SQLALCHEMY_DATABASE_URI="mysql+pymysql://travis@localhost:3306/invenio" ES_VERSION=2.2.0
- REQUIREMENTS=release E2E_WEBDRIVER_BROWSERS="Firefox" EXTRAS=all,postgresql SQLALCHEMY_DATABASE_URI="postgresql+psycopg2://postgres@localhost:5432/invenio" ES_VERSION=2.2.0
- REQUIREMENTS=devel EXTRAS=all,sqlite SQLALCHEMY_DATABASE_URI="sqlite:///test.db" ES_VERSION=2.2.0
- REQUIREMENTS=devel EXTRAS=all,mysql SQLALCHEMY_DATABASE_URI="mysql+pymysql://travis@localhost:3306/invenio" ES_VERSION=2.2.0
- REQUIREMENTS=devel EXTRAS=all,postgresql SQLALCHEMY_DATABASE_URI="postgresql+psycopg2://postgres@localhost:5432/invenio" ES_VERSION=2.2.0


python:
- "2.7"
- "3.5"

before_install:
- "mkdir /tmp/elasticsearch"
- "wget -O - https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/${ES_VERSION}/elasticsearch-${ES_VERSION}.tar.gz | tar xz --directory=/tmp/elasticsearch --strip-components=1"
- "/tmp/elasticsearch/bin/plugin install -b mapper-attachments"
- "/tmp/elasticsearch/bin/elasticsearch > /tmp/local-es.log &"
- "travis_retry pip install --upgrade pip setuptools py"
- "travis_retry pip install twine wheel coveralls requirements-builder"
- "requirements-builder --level=min setup.py > .travis-lowest-requirements.txt"
Expand Down
Expand Up @@ -39,6 +39,9 @@
"maintainer": {
"type": "string"
},
"legacy_ids" : {
"type": "array"
},
"od_conformance": {
"$ref": "#/definitions/conformance"
},
Expand Down
4 changes: 4 additions & 0 deletions invenio_opendefinition/mappings/licenses/license-v1.0.0.json
Expand Up @@ -26,6 +26,10 @@
"maintainer": {
"type": "string"
},
"legacy_ids" : {
"type": "string",
"index": "not_analyzed"
},
"od_conformance": {
"type": "string",
"index": "not_analyzed"
Expand Down
17 changes: 10 additions & 7 deletions setup.py
Expand Up @@ -40,21 +40,24 @@
'pytest-cache>=1.0',
'pytest-cov>=1.8.0',
'pytest-pep8>=1.0.6',
'pytest>=2.8.0',
'pytest>=3.3.1',
]

db_version = '>=1.0.0b9'

extras_require = {
'docs': [
'Sphinx>=1.4.2',
],
'sqlite': [
'invenio-db>=1.0.0a9',
# Database version
'postgresql': [
'invenio-db[postgresql,versioning]{}'.format(db_version),
],
'mysql': [
'invenio-db[mysql]>=1.0.0a9',
'invenio-db[mysql,versioning]{}'.format(db_version),
],
'postgresql': [
'invenio-db[postgresql]>=1.0.0a9',
'sqlite': [
'invenio-db[versioning]{}'.format(db_version),
],
'tests': tests_require,
}
Expand All @@ -78,7 +81,7 @@
'invenio-pidstore>=1.0.0b1',
'invenio-records>=1.0.0b1',
'invenio-records-rest>=1.0.0a18',
'invenio-search>=1.0.0a9',
'invenio-search==1.0.0b1', # support to ES 5/6 not tested
'jsonref>=0.1',
'jsonresolver>=0.2.1',
'jsonschema>=2.5.1',
Expand Down

0 comments on commit 8f8fe63

Please sign in to comment.