on develop help sign in
Use config file
commit73489328ec791f2244c04e3fb3284cbbba3deb4f authorOliver Batchelor <saulzar@gmail.com> dateSat 24 Aug 2019, 14:55 (7 years ago) parent0b4d350
1 file changed+20−15
.travis.yml+20−15
.travis.yml+20−15
@@ -1,6 +1,6 @@
11# This Travis job script has been generated by a script via
22#
3−# haskell-ci 'reflex.cabal'
3+# haskell-ci 'reflex.cabal' '--config' 'cabal.haskell-ci'
44#
55# For more information, see https://github.com/haskell-CI/haskell-ci
66#
@@ -29,13 +29,13 @@ matrix:
2929 - compiler: ghcjs-8.4
3030 addons: {"apt":{"sources":["hvr-ghc"],"packages":["cabal-install-3.0"]}}
3131 - compiler: ghc-8.6.5
32− addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.5","cabal-install-3.0"]}}
32+ addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.5","cabal-install-2.4"]}}
3333 - compiler: ghc-8.4.4
34− addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.4.4","cabal-install-3.0"]}}
34+ addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.4.4","cabal-install-2.4"]}}
3535 - compiler: ghc-8.2.2
36− addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.2.2","cabal-install-3.0"]}}
36+ addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.2.2","cabal-install-2.4"]}}
3737 - compiler: ghc-8.0.2
38− addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.0.2","cabal-install-3.0"]}}
38+ addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.0.2","cabal-install-2.4"]}}
3939before_install:
4040 - |
4141 if echo $CC | grep -q ghcjs; then
@@ -93,6 +93,7 @@ install:
9393 - echo $GHCJS
9494 - TEST=--enable-tests
9595 - BENCH=--enable-benchmarks
96+ - BENCH=--disable-benchmarks
9697 - HEADHACKAGE=false
9798 - rm -f $CABALHOME/config
9899 - |
@@ -121,16 +122,12 @@ install:
121122 - |
122123 echo "packages: ." >> cabal.project
123124 - |
124− - "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(reflex)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
125125 - cat cabal.project || true
126126 - cat cabal.project.local || true
127127 - if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
128− - echo "${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH}"
129− - ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH} --minimize-conflict-set | color_cabal_output
128+ - ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH} | color_cabal_output
130129 - "cat cabal.project.freeze | sed -E 's/^(constraints: *| *)//' | sed 's/any.//'"
131130 - rm cabal.project.freeze
132− - ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} --dep -j2 all | color_cabal_output
133− - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --dep -j2 all | color_cabal_output
134131script:
135132 - DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
136133 # Packaging...
@@ -147,7 +144,6 @@ script:
147144 - |
148145 echo "packages: ${PKGDIR_reflex}" >> cabal.project
149146 - |
150− - "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(reflex)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
151147 - cat cabal.project || true
152148 - cat cabal.project.local || true
153149 # Building...
@@ -162,9 +158,18 @@ script:
162158 - (cd ${PKGDIR_reflex} && ${CABAL} -vnormal check)
163159 # haddock...
164160 - if ! $GHCJS ; then ${CABAL} v2-haddock $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output ; fi
165− # Building without installed constraints for packages in global-db...
166− - rm -f cabal.project.local
167− - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all | color_cabal_output
161+ # Constraint sets
162+ - rm -rf cabal.project.local
163+ # Constraint set no-th
164+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='reflex -use-template-haskell' all | color_cabal_output
165+ # Constraint set old-these
166+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='these <1' all | color_cabal_output
167+ # Constraint set old-witherable
168+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='witherable <0.3.2' all | color_cabal_output
169+ # Constraint set debug-propagation
170+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='+debug-propagation' all | color_cabal_output
171+ # Constraint set debug-cycles
172+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='+debug-cycles' all | color_cabal_output
168173
169−# REGENDATA ["reflex.cabal"]
174+# REGENDATA ["reflex.cabal","--config","cabal.haskell-ci"]
170175# EOF