Skip to content

Commit 6fda2b0

Browse files
author
Mistral Contrastin
committed
[Travis] Unpack and install stack manually
1 parent f34fe1b commit 6fda2b0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.travis.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ before_install:
55
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 575159689BEFB442
66
- echo 'deb http://download.fpcomplete.com/ubuntu precise main'|sudo tee /etc/apt/sources.list.d/fpco.list
77
- sudo apt-get update -qq
8-
- sudo apt-get install stack -y -qq
9-
- stack setup
8+
- mkdir -p ~/.local/bin
9+
- export PATH=$HOME/.local/bin:$PATH
10+
- travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
11+
install:
12+
- stack --no-terminal --install-ghc test --only-dependencies
1013
script:
1114
- echo $TRAVIS_TAG
1215
- "GHC_OPTIONS=\"--ghc-options=\"$(ruby -e 'print (ENV[%q|TRAVIS_TAG|] =~ /v/ ? %q|-O3| : %q|-O0|)')\"\""
1316
- echo $GHC_OPTIONS
14-
- stack haddock --test -j 4 $GHC_OPTIONS
17+
- stack --no-terminal haddock --test --no-haddock-deps -j 4 $GHC_OPTIONS
1518
deploy:
1619
- provider: releases
1720
api_key:

0 commit comments

Comments
 (0)