on master help sign in
Set up Travis CI (#9)
045241eJonathan King
.travis.ymlnew file+19
@@ -0,0 +1,19 @@
1+sudo: false
2+
3+language: c
4+
5+addons:
6+ apt:
7+ packages:
8+ - libgmp-dev
9+
10+before_install:
11+- mkdir -p ~/.local/bin
12+- export PATH=$HOME/.local/bin:$PATH
13+- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
14+
15+script: stack --no-terminal --install-ghc test
16+
17+cache:
18+ directories:
19+ - $HOME/.stack
README.md+4
@@ -1,4 +1,8 @@
1# generic-lens
1# generic-lens
2+
3+[![Build
4+Status](https://travis-ci.org/kcsongor/generic-lens.svg?branch=master)](https://travis-ci.org/kcsongor/generic-lens)
5+
2Generically derive lenses for accessing fields of data types.
6Generically derive lenses for accessing fields of data types.
3
7
4Available on [Hackage](https://hackage.haskell.org/package/generic-lens)
8Available on [Hackage](https://hackage.haskell.org/package/generic-lens)
generic-lens.cabal+29
@@ -65,3 +65,32 @@ library
65source-repository head
65source-repository head
66 type: git
66 type: git
67 location: https://github.com/kcsongor/generic-lens
67 location: https://github.com/kcsongor/generic-lens
68+
69+test-suite generic-lens-test
70+ type:
71+ exitcode-stdio-1.0
72+ hs-source-dirs:
73+ test
74+ main-is:
75+ Spec.hs
76+
77+ build-depends: base >= 4.9 && <= 5.0
78+ , QuickCheck
79+ , hspec
80+ , generic-lens
81+
82+ ghc-options:
83+ -Wall
84+ other-extensions: AllowAmbiguousTypes
85+ , DataKinds
86+ , FlexibleInstances
87+ , FunctionalDependencies
88+ , PolyKinds
89+ , Rank2Types
90+ , ScopedTypeVariables
91+ , TypeApplications
92+ , TypeFamilies
93+ , TypeOperators
94+ , UndecidableInstances
95+ default-language:
96+ Haskell2010
test/Spec.hsnew file+1
@@ -0,0 +1 @@
1+{-# OPTIONS_GHC -F -pgmF hspec-discover #-}