forked from haskell-CI/haskell-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
haskell-ci.cabal
210 lines (192 loc) · 5.9 KB
/
haskell-ci.cabal
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
cabal-version: 2.2
name: haskell-ci
version: 0.14.3
synopsis: Cabal package script generator for Travis-CI
description:
Script generator (@haskell-ci@) for
[GitHub Actions](https://docs.github.com/en/actions) and
[Travis-CI](https://travis-ci.org/)
for continuous-integration testing of Haskell Cabal packages.
.
Included features (not limited to):
.
* Multiple GHC support
* Dependency caching
* cabal.project support (see [Nix-style local builds documentation](https://cabal.readthedocs.io/en/latest/nix-local-build-overview.html))
* Runs tests and builds benchmarks
* Generates Haddocks
* GHCJS support
* building with specific constraints
.
=== Quick Start Guide
.
Add a @tested-with@ line to your @.cabal@ file (e.g. @tested-with: GHC == 8.0.2 || == 8.2.2@) and then run @haskell-ci yourpackage.cabal -o .travis.yml@ to generate the Travis-CI job script.
.
See @haskell-ci --help@ for more information.
homepage: https://haskell-ci.rtfd.org/
bug-reports: https://github.com/haskell-CI/haskell-ci/issues
license: GPL-3.0-or-later
license-file: LICENSE
author: Herbert Valerio Riedel, Oleg Grenrus
maintainer: [email protected]
category: Development
build-type: Simple
tested-with:
GHC ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.4 || ==8.10.7 || ==9.0.2 || ==9.2.2
extra-source-files: CHANGELOG.md
extra-source-files:
fixtures/*.args
fixtures/*.bash
fixtures/*.github
fixtures/*.patch
fixtures/*.project
fixtures/*.travis
fixtures/servant/servant.cabal
fixtures/servant-client/servant-client.cabal
fixtures/servant-client-core/servant-client-core.cabal
fixtures/servant-docs/servant-docs.cabal
fixtures/servant-foreign/servant-foreign.cabal
fixtures/servant-server/servant-server.cabal
fixtures/splitmix/splitmix.cabal
source-repository head
type: git
location: https://github.com/haskell-CI/haskell-ci.git
flag ShellCheck
default: True
manual: True
library haskell-ci-internal
default-language: Haskell2010
hs-source-dirs: src
ghc-options:
-Wall -Wincomplete-uni-patterns -Wincomplete-record-updates
-Wcompat -Wnoncanonical-monad-instances
if impl(ghc <8.8)
ghc-options: -Wnoncanonical-monadfail-instances
exposed-modules:
HaskellCI
HaskellCI.Auxiliary
HaskellCI.Bash
HaskellCI.Bash.Template
HaskellCI.Cli
HaskellCI.Compiler
HaskellCI.Config
HaskellCI.Config.ConstraintSet
HaskellCI.Config.CopyFields
HaskellCI.Config.Docspec
HaskellCI.Config.Doctest
HaskellCI.Config.Dump
HaskellCI.Config.Empty
HaskellCI.Config.Folds
HaskellCI.Config.HLint
HaskellCI.Config.Installed
HaskellCI.Config.Jobs
HaskellCI.Config.PackageScope
HaskellCI.Config.Ubuntu
HaskellCI.Config.Validity
HaskellCI.Diagnostics
HaskellCI.Error
HaskellCI.GitConfig
HaskellCI.GitHub
HaskellCI.GitHub.Yaml
HaskellCI.HeadHackage
HaskellCI.Jobs
HaskellCI.List
HaskellCI.MonadErr
HaskellCI.Newtypes
HaskellCI.OptionsGrammar
HaskellCI.OptparseGrammar
HaskellCI.Package
HaskellCI.ParsecUtils
HaskellCI.Prelude
HaskellCI.Sh
HaskellCI.ShVersionRange
HaskellCI.TestedWith
HaskellCI.Tools
HaskellCI.Travis
HaskellCI.Travis.Yaml
HaskellCI.VersionInfo
HaskellCI.YamlSyntax
default-extensions:
NoImplicitPrelude
BangPatterns
DeriveAnyClass
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveTraversable
DerivingStrategies
GeneralizedNewtypeDeriving
ScopedTypeVariables
other-extensions:
CPP
NamedFieldPuns
OverloadedLabels
ViewPatterns
build-depends:
, base >=4.10 && <4.17
, binary ^>=0.8.5.1
, bytestring ^>=0.10.8.1 || ^>=0.11.1.0
, Cabal ^>=3.6.0.0
, containers ^>=0.5.7.1 || ^>=0.6.0.1
, deepseq ^>=1.4.2.0
, directory ^>=1.3.0.0
, filepath ^>=1.4.1.1
, mtl >=2.2.2
, parsec ^>=3.1.13.0
, pretty ^>=1.1.3.3
, process ^>=1.4.3.0 || ^>=1.6.1.0
, text ^>=1.2.3.0
, transformers ^>=0.5.2.0
if !impl(ghc >=8.2)
build-depends: bifunctors ^>=5.5.4
-- other dependencies
build-depends:
, aeson ^>=1.5.6.0 || ^>=2.0.0.0
, attoparsec ^>=0.14.1
, base-compat ^>=0.11 || ^>=0.12
, base16-bytestring ^>=1.0.1.0
, cabal-install-parsers ^>=0.4.5
, cryptohash-sha256 ^>=0.11.101.0
, exceptions ^>=0.10.0
, generic-lens-lite ^>=0.1
, HsYAML ^>=0.2.0.0
, indexed-traversable ^>=0.1.1
, indexed-traversable-instances ^>=0.1
, ini ^>=0.4.1
, lattices ^>=2
, network-uri ^>=2.6.1.0
, optparse-applicative ^>=0.16.1.0
, temporary ^>=1.3
, unordered-containers ^>=0.2.10.0
, zinza ^>=0.2
-- ShellCheck. Would need newer transformers for older GHC
if flag(shellcheck)
build-depends: ShellCheck ==0.7.2
executable haskell-ci
main-is: Main.hs
hs-source-dirs: cli
build-depends:
, base
, haskell-ci-internal
default-language: Haskell2010
test-suite golden
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: Tests.hs
hs-source-dirs: test
-- inherited constraints via lib:haskell-ci
build-depends:
, base
, base-compat
, bytestring
, Cabal
, directory
, filepath
, haskell-ci-internal
, transformers
-- dependencies needing explicit constraints
build-depends:
, ansi-terminal >=0.10 && <0.12
, Diff ^>=0.4.0
, tasty ^>=1.4.1
, tasty-golden ^>=2.3.1.1