git.iko.soy/typeable/bloodhound
on master help sign in
Newer Stack, j2, fast build, travis_wait
5020f71Chris Allen
.travis.yml+3−5
@@ -21,7 +21,7 @@ env:
21install:
21install:
22 # stack
22 # stack
23 - mkdir -p ~/.local/bin
23 - mkdir -p ~/.local/bin
24− - travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v1.2.0/stack-1.2.0-linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
24+ - travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v1.4.0/stack-1.4.0-linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
25 - export PATH=~/.local/bin:$PATH
25 - export PATH=~/.local/bin:$PATH
26 - stack --version
26 - stack --version
27
27
@@ -31,14 +31,12 @@ install:
31 # set up a repo for snapshot testing. Required in ES >= 1.6
31 # set up a repo for snapshot testing. Required in ES >= 1.6
32 - echo "path.repo = [\"/tmp\"]" >> ./elasticsearch-$ESVER/elasticsearch.yml
32 - echo "path.repo = [\"/tmp\"]" >> ./elasticsearch-$ESVER/elasticsearch.yml
33 - ./elasticsearch-$ESVER/bin/elasticsearch &
33 - ./elasticsearch-$ESVER/bin/elasticsearch &
34− # Ensure constant output so we don't sometimes get killed for taking too long to compile without output
35− - while true; do echo "travis pls"; sleep 30; done &
36
34
37script:
35script:
38 - stack setup
36 - stack setup
39 - stack update
37 - stack update
40− - stack build -j1
38+ - stack build -j2 --fast
41− - stack test bloodhound:tests --test-arguments="--qc-max-success 500" --flag bloodhound:$ESFLAG
39+ - travis_wait 45 stack test --fast bloodhound:tests --test-arguments="--qc-max-success 500" --flag bloodhound:$ESFLAG
42
40
43cache:
41cache:
44 directories:
42 directories: