doctests imports

split ES download links

newer java

switch java

Try to default java easily

manually set java_home

Update .travis.yml

Update .travis.yml

Update .travis.yml

Update .travis.yml

Update .travis.yml

Update .travis.yml

Update .travis.yml

Update .travis.yml
This commit is contained in:
Josh Berman 2016-12-04 16:50:04 +02:00
parent 00726fbe31
commit a25722620b
5 changed files with 17 additions and 18 deletions

View File

@ -4,20 +4,19 @@ addons:
apt:
packages:
- libgmp-dev
- openjdk-6-jre
- oracle-java8-installer
env:
# - GHCVER=7.6.3 ESVER=1.6.0 # Deprecated
# - GHCVER=7.8.3 ESVER=1.0.3 # Deprecated
# - GHCVER=7.8.3 ESVER=1.1.2 # Deprecated
# - GHCVER=7.8 ESVER=1.2.4 # deprecated
- GHCVER=7.8 ESVER=1.3.6 ESFLAG=ES1
- GHCVER=7.8 ESVER=1.4.1 ESFLAG=ES1
- GHCVER=7.10 ESVER=1.5.2 ESFLAG=ES1
- GHCVER=7.10 ESVER=1.6.0 ESFLAG=ES1
- GHCVER=7.10 ESVER=1.7.2 ESFLAG=ES1
- GHCVER=8.0 ESVER=1.7.2 ESFLAG=ES1
- GHCVER=8.0 ESVER=5.0.2 ESFLAG=ES5
global:
- JAVA_HOME=/usr/lib/jvm/java-8-oracle
matrix:
# - GHCVER=7.8 ESVER=1.3.6 ESFLAG=ES1 DLINK=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch
# - GHCVER=7.8 ESVER=1.4.1 ESFLAG=ES1 DLINK=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch
# - GHCVER=7.10 ESVER=1.5.2 ESFLAG=ES1 DLINK=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch
# - GHCVER=7.10 ESVER=1.6.0 ESFLAG=ES1 DLINK=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch
# - GHCVER=7.10 ESVER=1.7.2 ESFLAG=ES1 DLINK=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch
# - GHCVER=8.0 ESVER=1.7.2 ESFLAG=ES1 DLINK=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch
- GHCVER=8.0 ESVER=5.0.2 ESFLAG=ES5 DLINK=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch ES_JAVA_OPTS="-Xms500m -Xmx750m"
install:
# stack
@ -28,7 +27,7 @@ install:
- stack --version
# elasticsearch
- wget --no-check-certificate https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-$ESVER.tar.gz
- wget --no-check-certificate $DLINK-$ESVER.tar.gz
- tar xzf elasticsearch-$ESVER.tar.gz
# set up a repo for snapshot testing. Required in ES >= 1.6
- echo "path.repo = [\"/tmp\"]" >> ./elasticsearch-$ESVER/elasticsearch.yml
@ -37,7 +36,7 @@ install:
script:
- stack setup
- stack update
- stack build
- stack build -j1
- stack test --flag bloodhound:$ESFLAG
cache:

View File

@ -126,7 +126,7 @@ import Database.V1.Bloodhound.Types
-- $setup
-- >>> :set -XOverloadedStrings
-- >>> :set -XDeriveGeneric
-- >>> import Database.Bloodhound
-- >>> import Database.V1.Bloodhound
-- >>> let testServer = (Server "http://localhost:9200")
-- >>> let runBH' = withBH defaultManagerSettings testServer
-- >>> let testIndex = IndexName "twitter"

View File

@ -403,7 +403,7 @@ import Database.V1.Bloodhound.Types.Internal
-- $setup
-- >>> :set -XOverloadedStrings
-- >>> import Data.Aeson
-- >>> import Database.Bloodhound
-- >>> import Database.V1.Bloodhound
-- >>> let testServer = (Server "http://localhost:9200")
-- >>> let testIndex = IndexName "twitter"
-- >>> let testMapping = MappingName "tweet"

View File

@ -125,7 +125,7 @@ import Database.V5.Bloodhound.Types
-- $setup
-- >>> :set -XOverloadedStrings
-- >>> :set -XDeriveGeneric
-- >>> import Database.Bloodhound
-- >>> import Database.V5.Bloodhound
-- >>> let testServer = (Server "http://localhost:9200")
-- >>> let runBH' = withBH defaultManagerSettings testServer
-- >>> let testIndex = IndexName "twitter"

View File

@ -402,7 +402,7 @@ import Database.V5.Bloodhound.Types.Internal
-- $setup
-- >>> :set -XOverloadedStrings
-- >>> import Data.Aeson
-- >>> import Database.Bloodhound
-- >>> import Database.V5.Bloodhound
-- >>> let testServer = (Server "http://localhost:9200")
-- >>> let testIndex = IndexName "twitter"
-- >>> let testMapping = MappingName "tweet"