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#
1313version : ~> 1.0
1414language : c
@@ -17,6 +17,9 @@ dist: xenial
1717git :
1818 # whether to recursively clone submodules
1919 submodules : false
20+ branches :
21+ only :
22+ - master
2023cache :
2124 directories :
2225 - $HOME/.cabal/packages
@@ -33,8 +36,11 @@ before_cache:
3336 - rm -rfv $CABALHOME/packages/head.hackage
3437jobs :
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
161+ - if [ $HCNUMVER -ge 80800 ] ; then ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.18' 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
0 commit comments