2015-10-29 03:10:54 +03:00
|
|
|
sudo: false
|
2017-07-13 08:34:52 +03:00
|
|
|
language: generic
|
2014-05-03 09:31:43 +04:00
|
|
|
|
2015-10-29 03:10:54 +03:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libgmp-dev
|
2016-12-04 17:50:04 +03:00
|
|
|
- oracle-java8-installer
|
2014-05-03 09:31:43 +04:00
|
|
|
|
|
|
|
env:
|
2018-02-17 01:43:47 +03:00
|
|
|
global:
|
|
|
|
- JAVA_HOME=/usr/lib/jvm/java-8-oracle
|
|
|
|
matrix:
|
|
|
|
- GHCVER=8.0 ESVER=1.7.6 STACK_YAML=stack-8.0.yaml ESFLAG=ES1 DLINK=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch
|
|
|
|
- GHCVER=8.0 ESVER=5.0.2 STACK_YAML=stack-8.0.yaml ESFLAG=ES5 DLINK=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch ES_JAVA_OPTS="-Xms500m -Xmx750m"
|
|
|
|
- GHCVER=8.2 ESVER=1.7.6 STACK_YAML=stack.yaml ESFLAG=ES1 DLINK=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch
|
|
|
|
- GHCVER=8.2 ESVER=5.0.2 STACK_YAML=stack.yaml ESFLAG=ES5 DLINK=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch ES_JAVA_OPTS="-Xms500m -Xmx750m"
|
|
|
|
- GHCVER=8.2 ESVER=5.5.0 STACK_YAML=stack.yaml ESFLAG=ES5 DLINK=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch ES_JAVA_OPTS="-Xms500m -Xmx750m"
|
2018-02-17 01:47:36 +03:00
|
|
|
# allow_failures:
|
|
|
|
# - GHCVER=8.2 ESVER=6.1.3 STACK_YAML=stack.yaml ESFLAG=ES5 DLINK=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch ES_JAVA_OPTS="-Xms500m -Xmx750m"
|
2017-01-11 07:09:46 +03:00
|
|
|
|
2014-05-03 09:31:43 +04:00
|
|
|
install:
|
2015-10-29 03:10:54 +03:00
|
|
|
# stack
|
|
|
|
- mkdir -p ~/.local/bin
|
2018-06-28 16:06:46 +03:00
|
|
|
- travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v1.7.1/stack-1.7.1-linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
|
2015-10-29 03:10:54 +03:00
|
|
|
- export PATH=~/.local/bin:$PATH
|
2017-07-13 08:39:22 +03:00
|
|
|
- stack --no-terminal --version
|
2015-10-29 03:10:54 +03:00
|
|
|
# elasticsearch
|
2016-12-04 17:50:04 +03:00
|
|
|
- wget --no-check-certificate $DLINK-$ESVER.tar.gz
|
2015-10-29 03:17:11 +03:00
|
|
|
- tar xzf elasticsearch-$ESVER.tar.gz
|
2016-07-29 22:55:50 +03:00
|
|
|
# set up a repo for snapshot testing. Required in ES >= 1.6
|
|
|
|
- echo "path.repo = [\"/tmp\"]" >> ./elasticsearch-$ESVER/elasticsearch.yml
|
2015-10-29 03:19:40 +03:00
|
|
|
- ./elasticsearch-$ESVER/bin/elasticsearch &
|
2014-05-03 09:31:43 +04:00
|
|
|
|
|
|
|
script:
|
2017-07-13 08:39:22 +03:00
|
|
|
- stack setup --no-terminal
|
|
|
|
- stack update --no-terminal
|
|
|
|
- stack build -j2 --fast --no-terminal
|
2017-07-13 09:11:07 +03:00
|
|
|
- travis_wait 45 sleep 1800 &
|
2018-02-09 01:22:35 +03:00
|
|
|
- stack test --fast --no-terminal bloodhound:bloodhound-tests --test-arguments="--qc-max-success 500" --flag bloodhound:$ESFLAG
|
2014-05-03 09:31:43 +04:00
|
|
|
|
2015-10-29 22:54:07 +03:00
|
|
|
cache:
|
2017-07-13 08:39:22 +03:00
|
|
|
timeout: 2000
|
2015-10-29 22:54:07 +03:00
|
|
|
directories:
|
2017-07-13 08:34:52 +03:00
|
|
|
- $HOME/.cabal
|
|
|
|
- $HOME/.ghc
|
2015-10-29 22:54:07 +03:00
|
|
|
- $HOME/.stack
|
2017-07-13 08:39:22 +03:00
|
|
|
- .stack-work/
|
|
|
|
apt: true
|