-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpackcheck.cabal
More file actions
91 lines (83 loc) · 2.66 KB
/
packcheck.cabal
File metadata and controls
91 lines (83 loc) · 2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
cabal-version: 2.2
name: packcheck
version: 0.7.1
synopsis: Universal build and CI testing for Haskell packages
description:
This package contains a universal CI/build script @packcheck.sh@ and config
files designed such that you can just copy over
@.github\/workflows/packcheck.yml@, @appveyor.yml@, @.circleci/config.yml@
or @.cirrus.yml@ to your package repo and your package is CI ready
in a jiffy. You can build and test packages on local machine as
well. For local testing, copy @packcheck.sh@ to your local machine,
put it in your PATH, and run it from your package directory:
.
> $ packcheck.sh cabal
> $ packcheck.sh stack
.
You can try the script on this package itself. It builds and comprehensively
sanity tests a Haskell package across build tools (stack/cabal), uniformly,
consistently and across all platforms (Linux\/MacOS\/Windows). You do not
need to be familiar with any of the build tools to use it.
.
This is also a minimal yet complete model package (with tests, benchmarks, CI
already working) that can be used as a starting point to develop a new
package. Beginners can use it to learn about haskell package metadata
structure, benchmarks, tests, CI configs etc.
.
See the README for comprehensive documentation.
homepage: https://github.com/composewell/packcheck
bug-reports: https://github.com/composewell/packcheck/issues
license: BSD-3-Clause
license-file: LICENSE
tested-with:
GHC==9.14.1
, GHC==9.12.4
, GHC==9.10.3
, GHC==9.8.4
, GHC==9.6.3
author: Harendra Kumar
maintainer: harendra.kumar@gmail.com
copyright: 2017 Harendra Kumar
category: Testing, CI
stability: Experimental
build-type: Simple
extra-doc-files:
Changelog.md
MAINTAINING.md
README.md
extra-source-files:
configure.ac
packcheck.sh
packcheck-remote.sh
source-repository head
type: git
location: https://github.com/composewell/packcheck
flag dev
description: Development build
manual: True
default: False
library
hs-source-dirs: src
exposed-modules: Hello
default-language: Haskell2010
build-depends:
base >= 4.8 && < 5
, unicode-data >= 0.3.0 && < 1
test-suite test
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
build-depends:
packcheck
, base >= 4.8 && < 5
default-language: Haskell2010
if flag(dev)
ghc-options: -Wall
benchmark bench
type: exitcode-stdio-1.0
hs-source-dirs: bench
main-is: Main.hs
build-depends:
packcheck
, base >= 4.8 && < 5
default-language: Haskell2010