Skip to content

Commit

Permalink
Merge 104f8a7 into 3d8b429
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas BROGNOLI committed Feb 15, 2019
2 parents 3d8b429 + 104f8a7 commit 841991e
Show file tree
Hide file tree
Showing 5 changed files with 425 additions and 7 deletions.
22 changes: 17 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,33 @@
language: python
# Existing Python versions
python:
- 3.4
- 3.5
- 3.6
# python:
# - 3.4
# - 3.5
# - 3.6
# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs
matrix:
include:
- python: 3.7
- env: TOX_ENV=py37-django-21-es6 ES_APT_URL=https://artifacts.elastic.co/packages/6.x/apt
python: 3.7
dist: xenial
sudo: true
- env: TOX_ENV=py36-django-110-es2 ES_APT_URL=https://packages.elastic.co/elasticsearch/2.x/debian
python: 3.6

before_install:
- wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
- echo "deb $ES_APT_URL stable main" | sudo tee -a /etc/apt/sources.list.d/elastic.list
- sudo apt-get update && sudo apt-get install elasticsearch -y
- sudo service elasticsearch start

install:
- pip install .
- pip install -r requirements-dev.txt
- pip install coveralls

script:
- make tests
- make quality

after_success:
- coveralls
182 changes: 182 additions & 0 deletions luqum/tests/book.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
{
"books": [
{
"title": "Harry Potter and the Philosopher's Stone",
"edition": "Bloomsbury",
"author": {
"name": "J. K. Rowling",
"birthdate": "1965-07-31"
},
"illustrators": [
{
"name": "Thomas Taylor",
"nationality": "UK",
"birthdate": "1973-05-22"
},
{
"name": "Mary GrandPré",
"nationality":"US",
"birthdate": "1954-02-13"
}
],
"publication_date": "1997-06-26",
"n_pages": "223"
},
{
"title": "Harry Potter and the Chamber of Secrets",
"edition": "Bloomsbury",
"author": {
"name": "J. K. Rowling",
"birthdate": "1965-07-31"
},
"illustrators": [
{
"name": "Cliff Wright",
"nationality": "UK",
"birthdate": "1953-10-24"
},
{
"name": "Mary GrandPré",
"nationality": "US",
"birthdate": "1954-02-13"
}
],
"publication_date": "1998-07-02",
"n_pages": "251"
},
{
"title": "Harry Potter and the Prisoner of Azkaban",
"edition": "Bloomsbury",
"author": {
"name": "J. K. Rowling",
"birthdate": "1965-07-31"
},
"illustrators": [
{
"name": "Cliff Wright",
"nationality": "UK",
"birthdate": "1953-10-24"
},
{
"name": "Mary GrandPré",
"nationality": "US",
"birthdate": "1954-02-13"
}
],
"publication_date": "1999-07-08",
"n_pages": "317"
},
{
"title": "Harry Potter and the Goblet of Fire",
"edition": "Bloomsbury",
"author": {
"name": "J. K. Rowling",
"birthdate": "1965-07-31"
},
"illustrators": [
{
"name": "Giles Greenfield",
"nationality": "UK"
},
{
"name": "Mary GrandPré",
"nationality": "US",
"birthdate": "1954-02-13"
}
],
"publication_date": "2000-07-08",
"n_pages": "636"
},
{
"title": "Harry Potter and the Order of the Phoenix",
"edition": "Bloomsbury",
"author": {
"name": "J. K. Rowling",
"birthdate": "1965-07-31"
},
"illustrators": [
{
"name":"Jason Cockcroft",
"nationality":"UK"
},
{
"name": "Mary GrandPré",
"nationality": "US",
"birthdate": "1954-02-13"
}
],
"publication_date": "2003-06-21",
"n_pages": "766"
},
{
"title": "Harry Potter and the Half-Blood Prince",
"edition": "Bloomsbury",
"author": {
"name": "J. K. Rowling",
"birthdate": "1965-07-31"
},
"illustrators": [
{
"name": "Jason Cockcroft",
"nationality": "UK"
},
{
"name": "Mary GrandPré",
"nationality": "US",
"birthdate": "1954-02-13"
}
],
"publication_date": "2005-07-16",
"n_pages": "607"
},
{
"title": "Harry Potter and the Deathly Hallows",
"edition": "Bloomsbury",
"author": {
"name": "J. K. Rowling",
"birthdate": "1965-07-31"
},
"illustrators": [
{
"name": "Jason Cockcroft",
"nationality": "UK"
},
{
"name": "Mary GrandPré",
"nationality": "US",
"birthdate": "1954-02-13"
}
],
"publication_date": "2007-07-21",
"n_pages": "607"
},
{
"title": "Harry Potter and the Cursed Child",
"edition": "Little, Brown and Company",
"author": {
"name": "J. K. Rowling",
"birthdate": "1965-07-31"
},
"illustrators": [],
"publication_date": "2016-07-30",
"n_pages": "360"
},
{
"title": "The Tales of Beedle the Bard",
"edition": "Lumos (charity)",
"author": {
"name": "J. K. Rowling",
"birthdate": "1965-07-31"
},
"illustrators": [
{
"name":"J. K. Rowling",
"nationality": "UK",
"birthdate": "1965-07-31"
}
],
"publication_date": "2008-12-04",
"n_pages": "157"
}
]
}

0 comments on commit 841991e

Please sign in to comment.