on master help sign in
New CI script, test with GHC 8.4.1 (#37)
54174e3Mark Karpov
.gitignore+12
@@ -1,10 +1,19 @@
1*#
1*#
2+*.aux
2*.chi
3*.chi
3*.chs.h
4*.chs.h
5+*.dyn_hi
6+*.dyn_o
7+*.eventlog
4*.hi
8*.hi
9+*.hp
5*.o
10*.o
11+*.prof
6*~
12*~
13+.HTF/
7.cabal-sandbox/
14.cabal-sandbox/
15+.ghc.environment.*
16+.hpc
8.hsenv
17.hsenv
9.stack-work/
18.stack-work/
10.virtualenv
19.virtualenv
@@ -12,5 +21,8 @@ TAGS
12benchmarks.tix
21benchmarks.tix
13cabal-dev
22cabal-dev
14cabal.config
23cabal.config
24+cabal.project.local
15cabal.sandbox.config
25cabal.sandbox.config
26+dist-*/
16dist/
27dist/
28+stack.yaml
.travis.yml+17−25
@@ -4,41 +4,33 @@ sudo: false
4
4
5cache:
5cache:
6 directories:
6 directories:
7− - ~/.ghc
7+ - ~/.cabal/packages
8− - ~/.cabal
8+ - ~/.cabal/store
9
9
10matrix:
10matrix:
11 include:
11 include:
12− - env: CABALVER=1.24 GHCVER=7.10.3
12+ - env: CABALVER=2.0 GHCVER=7.10.3
13− addons: {apt: {packages: [cabal-install-1.24,ghc-7.10.3],sources: [hvr-ghc]}}
13+ addons: {apt: {packages: [cabal-install-2.0,ghc-7.10.3],sources: [hvr-ghc]}}
14− - env: CABALVER=1.24 GHCVER=8.0.2
14+ - env: CABALVER=2.0 GHCVER=8.0.2
15− addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2], sources: [hvr-ghc]}}
15+ addons: {apt: {packages: [cabal-install-2.0,ghc-8.0.2], sources: [hvr-ghc]}}
16− - env: CABALVER=1.24 GHCVER=8.2.2
16+ - env: CABALVER=2.0 GHCVER=8.2.2
17− addons: {apt: {packages: [cabal-install-1.24,ghc-8.2.2], sources: [hvr-ghc]}}
17+ addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.2], sources: [hvr-ghc]}}
18+ - env: CABALVER=2.0 GHCVER=8.4.1
19+ addons: {apt: {packages: [cabal-install-2.0,ghc-8.4.1], sources: [hvr-ghc]}}
18
20
19before_install:
21before_install:
20 - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
22 - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
21
23
22install:
24install:
23− - cabal --version
25+ - cabal --version
24− - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
26+ - ghc --version
25− - travis_retry cabal update
27+ - travis_retry cabal update
26− - cabal install --only-dependencies --enable-tests
27− - cabal install hpc-coveralls
28
28
29script:
29script:
30− - cabal configure --enable-tests --enable-coverage -v2 -f dev
30+ - cabal new-build --enable-tests --enable-benchmarks --flags=dev
31− - cabal build
32− - cabal test --show-details=always
31+ - cabal new-test
33− - cabal sdist
32+ - cabal new-haddock
34− - cabal haddock | grep "100%" | wc -l | grep "1"
33+ - cabal sdist
35−
36−after_script:
37− - export PATH=~/.cabal/bin:$PATH
38− - hpc-coveralls --coverage-mode=StrictlyFullLines
39− --exclude-dir=pure-tests
40− --exclude-dir=httpbin-tests
41− pure-tests httpbin-tests
42
34
43notifications:
35notifications:
44 email: false
36 email: false
README.md−1
@@ -5,7 +5,6 @@
5[![Stackage Nightly](http://stackage.org/package/req/badge/nightly)](http://stackage.org/nightly/package/req)
5[![Stackage Nightly](http://stackage.org/package/req/badge/nightly)](http://stackage.org/nightly/package/req)
6[![Stackage LTS](http://stackage.org/package/req/badge/lts)](http://stackage.org/lts/package/req)
6[![Stackage LTS](http://stackage.org/package/req/badge/lts)](http://stackage.org/lts/package/req)
7[![Build Status](https://travis-ci.org/mrkkrp/req.svg?branch=master)](https://travis-ci.org/mrkkrp/req)
7[![Build Status](https://travis-ci.org/mrkkrp/req.svg?branch=master)](https://travis-ci.org/mrkkrp/req)
8−[![Coverage Status](https://coveralls.io/repos/mrkkrp/req/badge.svg?branch=master&service=github)](https://coveralls.io/github/mrkkrp/req?branch=master)
9
8
10* [Motivation and Req vs other libraries](#motivation-and-req-vs-other-libraries)
9* [Motivation and Req vs other libraries](#motivation-and-req-vs-other-libraries)
11* [Unsolved problems](#unsolved-problems)
10* [Unsolved problems](#unsolved-problems)
req.cabal+4−2
@@ -1,7 +1,7 @@
1name: req
1name: req
2version: 1.0.0
2version: 1.0.0
3−cabal-version: >= 1.18
3+cabal-version: 1.18
4−tested-with: GHC==7.10.3, GHC==8.0.2, GHC==8.2.2
4+tested-with: GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.1
5license: BSD3
5license: BSD3
6license-file: LICENSE.md
6license-file: LICENSE.md
7author: Mark Karpov <markkarpov92@gmail.com>
7author: Mark Karpov <markkarpov92@gmail.com>
@@ -75,6 +75,7 @@ test-suite pure-tests
75 , req
75 , req
76 , text >= 0.2 && < 1.3
76 , text >= 0.2 && < 1.3
77 , time >= 1.2 && < 1.9
77 , time >= 1.2 && < 1.9
78+ build-tools: hspec-discover >= 2.0 && < 3.0
78 if flag(dev)
79 if flag(dev)
79 ghc-options: -O0 -Wall -Werror
80 ghc-options: -O0 -Wall -Werror
80 else
81 else
@@ -99,6 +100,7 @@ test-suite httpbin-tests
99 , req
100 , req
100 , text >= 0.2 && < 1.3
101 , text >= 0.2 && < 1.3
101 , unordered-containers >= 0.2.5 && < 0.2.10
102 , unordered-containers >= 0.2.5 && < 0.2.10
103+ build-tools: hspec-discover >= 2.0 && < 3.0
102 if flag(dev)
104 if flag(dev)
103 ghc-options: -O0 -Wall -Werror
105 ghc-options: -O0 -Wall -Werror
104 else
106 else
stack.yamldeleted−3
@@ -1,3 +0,0 @@
1−resolver: lts-10.0
2−packages:
3−- '.'