on master help sign in
Set up Travis CI (#9)

* Set up Travis * Add Travis CI badge to README

commit045241e1c6eab9f096d33959bcc555036314232b authorJonathan King <jonathanlking@me.com> dateTue 13 Jun 2017, 23:30 (9 years ago) parentee5e6de
4 files changed+53
.travis.yml+19 README.md+4 generic-lens.cabal+29 test/Spec.hs+1
.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 @@
11# 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+
26Generically derive lenses for accessing fields of data types.
37
48Available on [Hackage](https://hackage.haskell.org/package/generic-lens)
generic-lens.cabal+29
@@ -65,3 +65,32 @@ library
6565source-repository head
6666 type: git
6767 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 #-}