mirror of
https://github.com/ilyakooo0/servant-quickcheck.git
synced 2024-11-25 21:42:59 +03:00
commit
78e0b32019
35
.travis.yml
35
.travis.yml
@ -2,25 +2,30 @@ sudo: false
|
||||
|
||||
language: c
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- env: CABALVER=1.22 GHCVER=7.10.1
|
||||
addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.1],sources: [hvr-ghc]}}
|
||||
- env: CABALVER=1.24 GHCVER=8.0.1
|
||||
addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.1], sources: [hvr-ghc]}}
|
||||
env:
|
||||
- STACK_YAML=stack.yaml
|
||||
- STACK_YAML=stack-lts-7.yaml
|
||||
- STACK_YAML=stack-lts-6.yaml
|
||||
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages: libgmp-dev
|
||||
|
||||
|
||||
install:
|
||||
- (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/$CABALVER/bin:$PATH
|
||||
- ghc --version
|
||||
- cabal --version
|
||||
- travis_retry cabal update
|
||||
- sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
|
||||
# stack
|
||||
- mkdir -p ~/.local/bin
|
||||
- export PATH=~/.local/bin:$PATH
|
||||
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
|
||||
- stack --version
|
||||
|
||||
script:
|
||||
- tinc && cabal configure --enable-tests && cabal build && cabal test
|
||||
- cabal check
|
||||
- stack setup --no-terminal
|
||||
- stack build --ghc-options=-Werror --no-terminal
|
||||
- stack test --ghc-options=-Werror --no-terminal --coverage
|
||||
- stack haddock --no-terminal
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.tinc/cache
|
||||
- $HOME/.stack
|
||||
|
@ -38,7 +38,7 @@ library
|
||||
, case-insensitive == 1.2.*
|
||||
, clock >= 0.7 && < 0.8
|
||||
, data-default-class >= 0.0 && < 0.2
|
||||
, hspec == 2.2.*
|
||||
, hspec >= 2.2 && < 2.4
|
||||
, http-client >= 0.4.30 && < 0.6
|
||||
, http-media == 0.6.*
|
||||
, http-types > 0.8 && < 0.10
|
||||
|
@ -1,10 +0,0 @@
|
||||
# Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2)
|
||||
resolver: nightly-2016-10-03
|
||||
packages:
|
||||
- '.'
|
||||
extra-deps:
|
||||
- 'servant-0.9'
|
||||
- 'servant-server-0.9'
|
||||
- 'servant-client-0.9'
|
||||
flags: {}
|
||||
extra-package-dbs: []
|
6
stack-lts-6.yaml
Normal file
6
stack-lts-6.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
resolver: lts-6.30
|
||||
packages:
|
||||
- '.'
|
||||
extra-deps: []
|
||||
flags: {}
|
||||
extra-package-dbs: []
|
6
stack-lts-7.yaml
Normal file
6
stack-lts-7.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
resolver: lts-7.19
|
||||
packages:
|
||||
- '.'
|
||||
extra-deps: []
|
||||
flags: {}
|
||||
extra-package-dbs: []
|
@ -1,7 +1,9 @@
|
||||
# Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2)
|
||||
resolver: lts-6.17
|
||||
resolver: lts-8.4
|
||||
packages:
|
||||
- '.'
|
||||
extra-deps: []
|
||||
extra-deps:
|
||||
- hspec-2.3.2
|
||||
- hspec-core-2.3.2
|
||||
- hspec-discover-2.3.2
|
||||
flags: {}
|
||||
extra-package-dbs: []
|
||||
|
Loading…
Reference in New Issue
Block a user