name:                libjenkins
version:             0.4.3.0
synopsis:            Jenkins API interface
description:         Jenkins API interface. It supports REST and Discovery APIs
license:             BSD3
license-file:        LICENSE
author:              Matvey Aksenov
maintainer:          matvey.aksenov@gmail.com
category:            Network
build-type:          Simple
extra-source-files:
  README.md
  CHANGELOG.md
  bench/Concurrency.hs
  bench/README.md
  example/grep-jobs.hs
  example/rename-jobs.hs
  example/discover.hs
  example/running-jobs-count.hs
cabal-version:       >= 1.10

source-repository head
  type:     git
  location: https://github.com/supki/libjenkins

source-repository this
  type:     git
  location: https://github.com/supki/libjenkins
  tag:      0.4.3.0

library
  default-language:  Haskell2010
  hs-source-dirs:    src
  exposed-modules:
    Jenkins.Discover
    Jenkins.Rest
    Jenkins.Rest.Internal
    Jenkins.Rest.Method
    Network.HTTP.Conduit.Lens
  build-depends:
      async         >= 2.0
    , base          >= 4.6 && < 5
    , bytestring    >= 0.9
    , conduit       >= 1.0
    , free          >= 4.1
    , http-client   >= 0.2.0.2
    , http-conduit  >= 2.0 && < 2.2
    , http-types    >= 0.8
    , lens          >= 4.0.1
    , monad-control >= 0.3
    , network       >= 2.4
    , resourcet     >= 1.1
    , text          >= 0.11
    , transformers  >= 0.3
    , xml-conduit   >= 1.1

test-suite doctest
  default-language:  Haskell2010
  type:              exitcode-stdio-1.0
  build-depends:
      base          == 4.*
    , directory
    , doctest
    , filepath
  hs-source-dirs:    test
  main-is:           Doctest.hs

test-suite spec
  default-language:  Haskell2010
  type:              exitcode-stdio-1.0
  build-depends:
      async
    , base          == 4.*
    , bytestring
    , conduit
    , free
    , hspec
    , hspec-expectations-lens
    , http-client
    , http-conduit
    , http-types
    , lens
    , monad-control
    , network
    , resourcet
    , text
    , transformers
    , xml-conduit
  hs-source-dirs:
    src
    test
  main-is:           Spec.hs
  other-modules:
    Jenkins.RestSpec
    Jenkins.Rest.InternalSpec
  cpp-options:
    -DTEST