2015-10-29 03:10:54 +03:00
|
|
|
sudo: false
|
2014-05-03 09:31:43 +04:00
|
|
|
|
2015-10-29 03:10:54 +03:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libgmp-dev
|
|
|
|
- openjdk-6-jre
|
2014-05-03 09:31:43 +04:00
|
|
|
|
|
|
|
env:
|
2015-08-23 19:56:06 +03:00
|
|
|
# - GHCVER=7.6.3 ESVER=1.6.0 # Deprecated
|
2015-06-29 20:56:36 +03:00
|
|
|
# - GHCVER=7.8.3 ESVER=1.0.3 # Deprecated
|
|
|
|
# - GHCVER=7.8.3 ESVER=1.1.2 # Deprecated
|
2016-07-30 01:03:04 +03:00
|
|
|
# - GHCVER=7.8 ESVER=1.2.4 # deprecated
|
2015-08-23 19:56:06 +03:00
|
|
|
- GHCVER=7.8 ESVER=1.3.6
|
|
|
|
- GHCVER=7.8 ESVER=1.4.1
|
|
|
|
- GHCVER=7.10 ESVER=1.5.2
|
|
|
|
- GHCVER=7.10 ESVER=1.6.0
|
2015-10-07 12:51:18 +03:00
|
|
|
- GHCVER=7.10 ESVER=1.7.2
|
2014-05-03 09:31:43 +04:00
|
|
|
|
|
|
|
install:
|
2015-10-29 03:10:54 +03:00
|
|
|
# stack
|
|
|
|
- export STACK_YAML=stack-$GHCVER.yaml
|
|
|
|
- mkdir -p ~/.local/bin
|
|
|
|
- travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.4.0/stack-0.1.4.0-x86_64-linux.tar.gz | tar -xvzf -
|
|
|
|
- mv stack ~/.local/bin
|
|
|
|
- export PATH=~/.local/bin:$PATH
|
|
|
|
- stack --version
|
2014-05-03 09:31:43 +04:00
|
|
|
|
2015-10-29 03:10:54 +03:00
|
|
|
# elasticsearch
|
2015-10-29 03:13:18 +03:00
|
|
|
- wget --no-check-certificate https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-$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:
|
2015-10-29 03:10:54 +03:00
|
|
|
- stack setup
|
2016-03-03 10:07:43 +03:00
|
|
|
- stack update
|
2015-10-29 03:10:54 +03:00
|
|
|
- stack build
|
|
|
|
- stack test
|
2014-05-03 09:31:43 +04:00
|
|
|
|
2015-10-29 22:54:07 +03:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.stack
|