Merge pull request #237 from sol/master

Test Hackage breakage
This commit is contained in:
Julian Arni 2015-11-05 11:39:20 -05:00
commit fdd1829c8f
13 changed files with 75 additions and 13 deletions

View file

@ -1,26 +1,32 @@
sudo: false sudo: false
language: c
env:
- GHCVER=7.8.4
- GHCVER=7.10.2
addons: addons:
apt: apt:
sources:
- hvr-ghc
packages: packages:
- ghc-7.8.4
- ghc-7.10.2
- cabal-install-1.22
- libgmp-dev - libgmp-dev
env:
- STACK_YAML=stack-ghc-7.8.4.yaml
- STACK_YAML=stack.yaml
install: install:
# stack - (mkdir -p $HOME/.local/bin && cd $HOME/.local/bin && wget https://zalora-public.s3.amazonaws.com/tinc && chmod +x tinc)
- mkdir -p ~/.local/bin - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.22/bin:$PATH
- 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 - - ghc --version
- mv stack ~/.local/bin - cabal --version
- export PATH=~/.local/bin:$PATH - travis_retry cabal update
- stack --version - sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
script: script:
- stack setup - for package in $(cat sources.txt); do (cd $package && tinc && cabal configure --enable-tests --disable-optimization && cabal build && cabal test) || exit 1; done
- stack build --test --ghc-options "-Werror"
cache: cache:
directories: directories:
- $HOME/.stack - $HOME/.tinc/cache

3
servant-blaze/tinc.yaml Normal file
View file

@ -0,0 +1,3 @@
dependencies:
- name: servant
path: ../servant

View file

@ -0,0 +1,3 @@
dependencies:
- name: servant
path: ../servant

5
servant-client/tinc.yaml Normal file
View file

@ -0,0 +1,5 @@
dependencies:
- name: servant
path: ../servant
- name: servant-server
path: ../servant-server

3
servant-docs/tinc.yaml Normal file
View file

@ -0,0 +1,3 @@
dependencies:
- name: servant
path: ../servant

View file

@ -0,0 +1,15 @@
dependencies:
- name: servant
path: ../servant
- name: servant-server
path: ../servant-server
- name: servant-client
path: ../servant-client
- name: servant-js
path: ../servant-js
- name: servant-lucid
path: ../servant-lucid
- name: servant-docs
path: ../servant-docs
- name: servant-foreign
path: ../servant-foreign

View file

@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeFamilies #-}
@ -17,10 +18,12 @@ data User = User
, registration_date :: Day , registration_date :: Day
} deriving (Eq, Show, Generic) } deriving (Eq, Show, Generic)
#if !MIN_VERSION_aeson(0,10,0)
-- orphan ToJSON instance for Day. necessary to derive one for User -- orphan ToJSON instance for Day. necessary to derive one for User
instance ToJSON Day where instance ToJSON Day where
-- display a day in YYYY-mm-dd format -- display a day in YYYY-mm-dd format
toJSON d = toJSON (showGregorian d) toJSON d = toJSON (showGregorian d)
#endif
instance ToJSON User instance ToJSON User

View file

@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeFamilies #-}
@ -17,10 +18,12 @@ data User = User
, registration_date :: Day , registration_date :: Day
} deriving (Eq, Show, Generic) } deriving (Eq, Show, Generic)
#if !MIN_VERSION_aeson(0,10,0)
-- orphan ToJSON instance for Day. necessary to derive one for User -- orphan ToJSON instance for Day. necessary to derive one for User
instance ToJSON Day where instance ToJSON Day where
-- display a day in YYYY-mm-dd format -- display a day in YYYY-mm-dd format
toJSON d = toJSON (showGregorian d) toJSON d = toJSON (showGregorian d)
#endif
instance ToJSON User instance ToJSON User

View file

@ -0,0 +1,3 @@
dependencies:
- name: servant
path: ../servant

7
servant-js/tinc.yaml Normal file
View file

@ -0,0 +1,7 @@
dependencies:
- name: servant
path: ../servant
- name: servant-server
path: ../servant-server
- name: servant-foreign
path: ../servant-foreign

3
servant-lucid/tinc.yaml Normal file
View file

@ -0,0 +1,3 @@
dependencies:
- name: servant
path: ../servant

5
servant-mock/tinc.yaml Normal file
View file

@ -0,0 +1,5 @@
dependencies:
- name: servant
path: ../servant
- name: servant-server
path: ../servant-server

3
servant-server/tinc.yaml Normal file
View file

@ -0,0 +1,3 @@
dependencies:
- name: servant
path: ../servant