forked from bitemyapp/bloodhound
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (35 loc) · 1012 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
sudo: false
addons:
apt:
packages:
- libgmp-dev
- openjdk-6-jre
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
- 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
- GHCVER=7.10 ESVER=1.7.2
install:
# 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
# elasticsearch
- wget --no-check-certificate https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-$ESVER.tar.gz
- tar xzf elasticsearch-$ESVER.tar.gz
- ./elasticsearch-$ESVER/bin/elasticsearch &
script:
- stack setup
- stack build
- stack test
cache:
directories:
- $HOME/.stack