Skip to content

Commit 0c29355

Browse files
committed
Bump version, support GHC-8.10
1 parent 8c9517e commit 0c29355

File tree

5 files changed

+37
-21
lines changed

5 files changed

+37
-21
lines changed

.travis.yml

+19-13
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# This Travis job script has been generated by a script via
22
#
3-
# haskell-ci 'cabal.project'
3+
# haskell-ci 'cabal.project' '--config' 'cabal.haskell-ci'
44
#
55
# To regenerate the script (for example after adjusting tested-with) run
66
#
77
# haskell-ci regenerate
88
#
99
# For more information, see https://github.com/haskell-CI/haskell-ci
1010
#
11-
# version: 0.10.1
11+
# version: 0.10.3
1212
#
1313
version: ~> 1.0
1414
language: c
@@ -17,6 +17,9 @@ dist: xenial
1717
git:
1818
# whether to recursively clone submodules
1919
submodules: false
20+
branches:
21+
only:
22+
- master
2023
cache:
2124
directories:
2225
- $HOME/.cabal/packages
@@ -33,8 +36,11 @@ before_cache:
3336
- rm -rfv $CABALHOME/packages/head.hackage
3437
jobs:
3538
include:
36-
- compiler: ghc-8.8.3
37-
addons: {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.8.3","cabal-install-3.2"]}}
39+
- compiler: ghc-8.10.2
40+
addons: {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.10.2","cabal-install-3.2"]}}
41+
os: linux
42+
- compiler: ghc-8.8.4
43+
addons: {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.8.4","cabal-install-3.2"]}}
3844
os: linux
3945
- compiler: ghc-8.6.5
4046
addons: {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.6.5","cabal-install-3.2"]}}
@@ -96,10 +102,6 @@ install:
96102
- echo 'package example' >> cabal.project
97103
- "echo ' ghc-options: -Werror=missing-methods' >> cabal.project"
98104
- |
99-
echo "source-repository-package" >> cabal.project
100-
echo " type: git" >> cabal.project
101-
echo " location: https://github.com/biocad/openapi3/" >> cabal.project
102-
echo " tag: bd9df532f2381c4b22fe86ef722715088f5cfa68" >> cabal.project
103105
- "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(example|servant-openapi3)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
104106
- cat cabal.project || true
105107
- cat cabal.project.local || true
@@ -132,10 +134,6 @@ script:
132134
- echo 'package example' >> cabal.project
133135
- "echo ' ghc-options: -Werror=missing-methods' >> cabal.project"
134136
- |
135-
echo "source-repository-package" >> cabal.project
136-
echo " type: git" >> cabal.project
137-
echo " location: https://github.com/biocad/openapi3/" >> cabal.project
138-
echo " tag: bd9df532f2381c4b22fe86ef722715088f5cfa68" >> cabal.project
139137
- "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(example|servant-openapi3)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
140138
- cat cabal.project || true
141139
- cat cabal.project.local || true
@@ -155,6 +153,14 @@ script:
155153
# Building without installed constraints for packages in global-db...
156154
- rm -f cabal.project.local
157155
- ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
156+
# Constraint sets
157+
- rm -rf cabal.project.local
158+
# Constraint set servant-0.17
159+
- if [ $HCNUMVER -lt 81000 ] ; then ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.17.*' all ; fi
160+
# Constraint set servant-0.18.0
161+
- if [ $HCNUMVER -ge 80800 ] ; then ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.18.0.*' all ; fi
162+
# Constraint set servant-0.18.1
163+
- if [ $HCNUMVER -ge 80800 ] ; then ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.18.1.*' all ; fi
158164

159-
# REGENDATA ("0.10.1",["cabal.project"])
165+
# REGENDATA ("0.10.3",["cabal.project","--config","cabal.haskell-ci"])
160166
# EOF

cabal.haskell-ci

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
branches: master
2+
3+
constraint-set servant-0.17
4+
ghc: >= 8.0 && <8.10
5+
constraints: servant ==0.17.*
6+
7+
constraint-set servant-0.18.0
8+
ghc: >= 8.8 && <8.12
9+
constraints: servant ==0.18.0.*
10+
11+
constraint-set servant-0.18.1
12+
ghc: >= 8.8 && <8.12
13+
constraints: servant ==0.18.1.*

cabal.project

-5
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,3 @@ packages:
22
servant-openapi3.cabal,
33
example/example.cabal
44
tests: true
5-
6-
source-repository-package
7-
type: git
8-
location: https://github.com/biocad/openapi3/
9-
tag: bd9df532f2381c4b22fe86ef722715088f5cfa68

example/example.cabal

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ data-files:
1616
tested-with:
1717
GHC ==8.4.4
1818
|| ==8.6.5
19-
|| ==8.8.3
19+
|| ==8.8.4
20+
|| ==8.10.2
2021

2122
library
2223
ghc-options: -Wall

servant-openapi3.cabal

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: servant-openapi3
2-
version: 2.0.0.1
2+
version: 2.0.1.0
33
synopsis: Generate a Swagger/OpenAPI/OAS 3.0 specification for your servant API.
44
description:
55
Swagger is a project used to describe and document RESTful APIs. The core of the
@@ -31,7 +31,8 @@ cabal-version: 1.18
3131
tested-with:
3232
GHC ==8.4.4
3333
|| ==8.6.5
34-
|| ==8.8.3
34+
|| ==8.8.4
35+
|| ==8.10.2
3536

3637
extra-source-files:
3738
README.md

0 commit comments

Comments
 (0)