packages feed

zuul-0.1.0.0: zuul.cabal

cabal-version:       2.4
name:                zuul
version:             0.1.0.0
synopsis:            A zuul client library
description:
    Zuul is a client library to interface with https://zuul-ci.org.
    .
    Use this library to query and decode zuul-web API.
    .
    Use the zuul-cli to compute informations.
    .
homepage:            https://github.com/softwarefactory-project/zuul-haskell#readme
bug-reports:         https://github.com/softwarefactory-project/zuul-haskell/issues
license:             Apache-2.0
license-file:        LICENSE
author:              Tristan de Cacqueray
maintainer:          tdecacqu@redhat.com
copyright:           2021 Red Hat
category:            Development
build-type:          Simple
extra-doc-files:     CHANGELOG.md
                     README.md
extra-source-files:  test/data/*.json
tested-with:         GHC == 8.10.3

source-repository head
  type:                git
  location:            https://github.com/softwarefactory-project/zuul-haskell.git

common common-options
  build-depends:       base                   >= 4.11.0.0 && < 5
                     , aeson                  >= 1.0.0.0  && < 1.6
  ghc-options:         -Wall
                       -Wcompat
                       -Widentities
                       -Wincomplete-uni-patterns
                       -Wincomplete-record-updates
                       -Wredundant-constraints
                       -Wno-unused-imports
  if impl(ghc >= 8.2)
    ghc-options:       -fhide-source-paths
  if impl(ghc >= 8.4)
    ghc-options:       -Wmissing-export-lists
  if impl(ghc >= 8.10)
    ghc-options:       -Wunused-packages

  default-language:    Haskell2010

library
  import:              common-options
  build-depends:       http-client            >= 0.5.0    && < 0.8
                     , http-client-tls        >= 0.2.0    && < 0.4
                     , text                   >= 0.11.1.0 && < 1.3
  hs-source-dirs:      src
  exposed-modules:     Zuul
                     , Zuul.Aeson
                     , Zuul.Job
                     , Zuul.JobConfig
                     , Zuul.Project
                     , Zuul.ProjectConfig
                     , Zuul.SourceContext
                     , Zuul.Nodeset
                     , Zuul.Status
                     , Zuul.Tenant

executable zuul-cli
  import:              common-options
  hs-source-dirs:      app
  main-is:             Main.hs
  build-depends:       aeson-pretty           < 0.9
                     , containers             >= 0.5.8.0  && < 0.7
                     , directory              >= 1.3.0.0  && < 1.4
                     , filepath               >= 1.4      && < 1.5
                     , optparse-generic       < 1.5.0
                     , text                   >= 0.11.1.0 && < 1.3
                     , xdg-basedir            < 0.3.0
                     , zuul
  ghc-options:         -threaded
                       -rtsopts
                       -with-rtsopts=-N

test-suite zuul-test
  import:              common-options
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:       bytestring                 < 0.11
                     , tasty                      >= 0.11.2   && < 1.5
                     , tasty-hunit                >= 0.10     && < 0.11
                     , zuul
  ghc-options:         -Wall