Skip to content

Commit

Permalink
Run docspec in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tchoutri committed Nov 8, 2021
1 parent 6d2ae0d commit 9cc77be
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 163 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ jobs:
- macOS-latest
cabal: ["latest"]
ghc:
# - "8.2.2" # persistent-2.11 doesn't build on ghc-8.2.2
- "8.4.4"
- "8.6.5"
- "8.8.4"
- "8.10.4"
- "8.10.7"

steps:
- uses: actions/checkout@v2
Expand All @@ -47,6 +46,14 @@ jobs:
- name: Test
run: |
cabal test all --enable-tests
- name: Fetch cabal-docspec
run: |
wget https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20210111/cabal-docspec-0.0.0.20210111.xz &&
unxz cabal-docspec-0.0.0.20210111.xz && mv cabal-docspec-0.0.0.20210111 cabal-docspec
chmod +x cabal-docspec
- name: Run cabal-docspec
run: ./cabal-docspec --check-properties --timeout=30
stack:
name: stack ${{ matrix.resolver }}
runs-on: ubuntu-latest
Expand Down
33 changes: 0 additions & 33 deletions password-instances/Setup.hs

This file was deleted.

30 changes: 2 additions & 28 deletions password-instances/password-instances.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ maintainer: [email protected], [email protected]
copyright: Copyright (c) Dennis Gosnell, 2019; Felix Paulusma, 2020
license: BSD3
license-file: LICENSE
build-type: Custom
build-type: Simple
extra-source-files:
README.md
ChangeLog.md
Expand All @@ -21,12 +21,6 @@ source-repository head
type: git
location: https://github.com/cdepillabout/password

custom-setup
setup-depends:
base
, Cabal
, cabal-doctest >=1.0.6 && <1.1

library
hs-source-dirs:
src
Expand All @@ -45,27 +39,7 @@ library
-Wall
default-language:
Haskell2010

test-suite doctests
type:
exitcode-stdio-1.0
hs-source-dirs:
test/doctest
main-is:
doctest.hs
ghc-options:
-threaded -rtsopts -with-rtsopts=-N
build-depends:
base >=4.9 && <5
, base-compat
, doctest
, password
, password-instances
, QuickCheck
, quickcheck-instances
, template-haskell
default-language:
Haskell2010
x-docspec-extra-packages: QuickCheck quickcheck-instances password password-types

test-suite password-instances-tasty
type:
Expand Down
1 change: 1 addition & 0 deletions password-instances/src/Data/Password/Instances.hs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import Web.HttpApiData (FromHttpApiData(..), ToHttpApiData(..))
--
-- >>> import Data.Aeson (decode)
-- >>> import Data.Password.Bcrypt (Salt(..), hashPasswordWithSalt, unsafeShowPassword)
-- >>> import Data.Password.Types
-- >>> import Database.Persist.Class (PersistField(toPersistValue))
-- >>> import Web.HttpApiData (parseUrlPiece)

Expand Down
33 changes: 0 additions & 33 deletions password-types/Setup.hs

This file was deleted.

8 changes: 1 addition & 7 deletions password-types/password-types.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@ maintainer: [email protected], [email protected]
copyright: Copyright (c) Dennis Gosnell & Felix Paulusma, 2020
license: BSD3
license-file: LICENSE
build-type: Custom
build-type: Simple
extra-source-files:
README.md
ChangeLog.md

custom-setup
setup-depends:
base
, Cabal
, cabal-doctest >=1.0.6 && <1.1

source-repository head
type: git
location: https://github.com/cdepillabout/password
Expand Down
33 changes: 0 additions & 33 deletions password/Setup.hs

This file was deleted.

29 changes: 2 additions & 27 deletions password/password.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,11 @@ maintainer: [email protected], [email protected]
copyright: Copyright (c) Dennis Gosnell, 2019; Felix Paulusma, 2020
license: BSD3
license-file: LICENSE
build-type: Custom
build-type: Simple
extra-source-files:
README.md
ChangeLog.md

custom-setup
setup-depends:
base
, Cabal
, cabal-doctest >=1.0.6 && <1.1

source-repository head
type: git
location: https://github.com/cdepillabout/password
Expand Down Expand Up @@ -81,26 +75,7 @@ library
-Wall
default-language:
Haskell2010

test-suite doctests
type:
exitcode-stdio-1.0
hs-source-dirs:
test/doctest
main-is:
doctest.hs
ghc-options:
-threaded -O2 -rtsopts -with-rtsopts=-N
build-depends:
base >=4.9 && <5
, base-compat
, doctest
, password
, QuickCheck
, quickcheck-instances
, template-haskell
default-language:
Haskell2010
x-docspec-extra-packages: QuickCheck quickcheck-instances

test-suite password-tasty
type:
Expand Down

0 comments on commit 9cc77be

Please sign in to comment.