on wai-extra/3.0.14.1 help sign in
typeable/wai/.travis-setup.sh
23 lines 764 B history raw
1#!/bin/sh
3set -eux
5# For simplicity, installing cabal-meta and Stack for both the Cabal and Stack
6# build plans, even though they're never both necessary.
8mkdir -p ~/.local/bin
9if [ `uname` = "Darwin" ]
10then
11 curl --insecure -L https://www.stackage.org/stack/osx-x86_64 | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin
12 brew install fcgi
13else
14 curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
15 curl -L http://download.fpcomplete.com/michael/cabal-meta.tar.gz | tar xz -C $HOME/.local/bin
16fi
18mkdir -p $HOME/.cabal
19cat > $HOME/.cabal/config <<EOF
20remote-repo: hackage.haskell.org:http://hackage.fpcomplete.com/
21remote-repo-cache: $HOME/.cabal/packages
22jobs: \$ncpus
23EOF