Skip to content

Commit

Permalink
Merge 11a2df0 into 3d8b429
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas BROGNOLI committed Feb 18, 2019
2 parents 3d8b429 + 11a2df0 commit 3728448
Show file tree
Hide file tree
Showing 4 changed files with 449 additions and 9 deletions.
49 changes: 42 additions & 7 deletions .travis.yml
@@ -1,21 +1,56 @@
language: python
# Existing Python versions
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: ES_APT_URL=https://packages.elastic.co/elasticsearch/2.x/debian ES_DSL_VERS=2.2.0 ES_VERS=2.2.1
python: 3.4
- env: ES_APT_URL=https://artifacts.elastic.co/packages/5.x/apt ES_DSL_VERS=5.3.0 ES_VERS=5.6.0
python: 3.4
- env: ES_APT_URL=https://artifacts.elastic.co/packages/6.x/apt ES_DSL_VERS=6.3.1 ES_VERS=6.4.3
python: 3.4
- env: ES_APT_URL=https://packages.elastic.co/elasticsearch/2.x/debian ES_DSL_VERS=2.2.0 ES_VERS=2.2.1
python: 3.5
- env: ES_APT_URL=https://artifacts.elastic.co/packages/5.x/apt ES_DSL_VERS=5.3.0 ES_VERS=5.6.0
python: 3.5
- env: ES_APT_URL=https://artifacts.elastic.co/packages/6.x/apt ES_DSL_VERS=6.3.1 ES_VERS=6.4.3
python: 3.5
- env: ES_APT_URL=https://packages.elastic.co/elasticsearch/2.x/debian ES_DSL_VERS=2.2.0 ES_VERS=2.2.1
python: 3.6
- env: ES_APT_URL=https://artifacts.elastic.co/packages/5.x/apt ES_DSL_VERS=5.3.0 ES_VERS=5.6.0
python: 3.6
- env: ES_APT_URL=https://artifacts.elastic.co/packages/6.x/apt ES_DSL_VERS=6.3.1 ES_VERS=6.4.3
python: 3.6
- env: ES_APT_URL=https://packages.elastic.co/elasticsearch/2.x/debian ES_DSL_VERS=2.2.0 ES_VERS=2.2.1
python: 3.7
sudo: true
dist: xenial
- env: ES_APT_URL=https://artifacts.elastic.co/packages/5.x/apt ES_DSL_VERS=5.3.0 ES_VERS=5.6.0
python: 3.7
sudo: true
dist: xenial
- env: ES_APT_URL=https://artifacts.elastic.co/packages/6.x/apt ES_DSL_VERS=6.3.1 ES_VERS=6.4.3
python: 3.7
dist: xenial
sudo: true

before_install:
- sudo rm /etc/apt/sources.list; sudo touch /etc/apt/sources.list
- 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=$ES_VERS -y --allow-downgrades
- sudo service elasticsearch start
- sleep 20
- curl localhost:9200

install:
- pip install .
- pip install -r requirements-dev.txt
- pip install coveralls
- pip install elasticsearch-dsl==$ES_DSL_VERS

script:
- make tests
- make quality

after_success:
- coveralls
182 changes: 182 additions & 0 deletions luqum/tests/book.json
@@ -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 3728448

Please sign in to comment.