servant/.travis.yml

46 lines
1,005 B
YAML
Raw Normal View History

2015-09-06 06:39:40 +02:00
sudo: false
2014-12-02 17:24:10 +01:00
2015-09-24 08:40:27 +02:00
language: c
env:
- GHCVER=7.8.4
- GHCVER=7.10.2
2015-11-25 10:31:58 +01:00
- GHCVER=7.10.2
GHCJS=true
2015-09-24 08:40:27 +02:00
2015-09-06 06:39:40 +02:00
addons:
apt:
2015-09-24 08:40:27 +02:00
sources:
- hvr-ghc
2015-09-06 06:39:40 +02:00
packages:
2015-09-24 08:40:27 +02:00
- ghc-7.8.4
- ghc-7.10.2
- cabal-install-1.22
2015-09-06 06:39:40 +02:00
- libgmp-dev
2015-04-20 19:52:29 +02:00
2015-04-20 13:38:25 +02:00
install:
2015-11-25 10:31:58 +01:00
# set up tinc
2015-09-24 08:40:27 +02:00
- (mkdir -p $HOME/.local/bin && cd $HOME/.local/bin && wget https://zalora-public.s3.amazonaws.com/tinc && chmod +x tinc)
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.22/bin:$PATH
- ghc --version
- cabal --version
- travis_retry cabal update
- sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
2015-04-20 13:38:25 +02:00
2015-11-25 10:31:58 +01:00
# set up stack (for ghcjs in servant-client)
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
- stack --version
2015-01-29 01:18:16 +01:00
script:
2015-11-25 10:31:58 +01:00
- if [ "$GHCJS" = "true" ];
then ./.travis-ghcjs.sh ;
else ./.travis-ghc.sh ;
fi
- export CASHER_TIME_OUT=500
2015-02-19 20:32:05 +01:00
2015-09-06 06:39:40 +02:00
cache:
directories:
2015-09-24 08:40:27 +02:00
- $HOME/.tinc/cache
2015-11-25 10:31:58 +01:00
- $HOME/.stack
- $HOME/.ghcjs