on develop help sign in
Use config file
7348932Oliver Batchelor
.travis.yml+20−15
@@ -1,6 +1,6 @@
1# This Travis job script has been generated by a script via
1# This Travis job script has been generated by a script via
2#
2#
3−# haskell-ci 'reflex.cabal'
3+# haskell-ci 'reflex.cabal' '--config' 'cabal.haskell-ci'
4#
4#
5# For more information, see https://github.com/haskell-CI/haskell-ci
5# For more information, see https://github.com/haskell-CI/haskell-ci
6#
6#
@@ -29,13 +29,13 @@ matrix:
29 - compiler: ghcjs-8.4
29 - compiler: ghcjs-8.4
30 addons: {"apt":{"sources":["hvr-ghc"],"packages":["cabal-install-3.0"]}}
30 addons: {"apt":{"sources":["hvr-ghc"],"packages":["cabal-install-3.0"]}}
31 - compiler: ghc-8.6.5
31 - 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"]}}
33 - compiler: ghc-8.4.4
33 - 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"]}}
35 - compiler: ghc-8.2.2
35 - 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"]}}
37 - compiler: ghc-8.0.2
37 - 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"]}}
39before_install:
39before_install:
40 - |
40 - |
41 if echo $CC | grep -q ghcjs; then
41 if echo $CC | grep -q ghcjs; then
@@ -93,6 +93,7 @@ install:
93 - echo $GHCJS
93 - echo $GHCJS
94 - TEST=--enable-tests
94 - TEST=--enable-tests
95 - BENCH=--enable-benchmarks
95 - BENCH=--enable-benchmarks
96+ - BENCH=--disable-benchmarks
96 - HEADHACKAGE=false
97 - HEADHACKAGE=false
97 - rm -f $CABALHOME/config
98 - rm -f $CABALHOME/config
98 - |
99 - |
@@ -121,16 +122,12 @@ install:
121 - |
122 - |
122 echo "packages: ." >> cabal.project
123 echo "packages: ." >> cabal.project
123 - |
124 - |
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"
125 - cat cabal.project || true
125 - cat cabal.project || true
126 - cat cabal.project.local || true
126 - cat cabal.project.local || true
127 - if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
127 - 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
130 - "cat cabal.project.freeze | sed -E 's/^(constraints: *| *)//' | sed 's/any.//'"
129 - "cat cabal.project.freeze | sed -E 's/^(constraints: *| *)//' | sed 's/any.//'"
131 - rm cabal.project.freeze
130 - 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
134script:
131script:
135 - DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
132 - DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
136 # Packaging...
133 # Packaging...
@@ -147,7 +144,6 @@ script:
147 - |
144 - |
148 echo "packages: ${PKGDIR_reflex}" >> cabal.project
145 echo "packages: ${PKGDIR_reflex}" >> cabal.project
149 - |
146 - |
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"
151 - cat cabal.project || true
147 - cat cabal.project || true
152 - cat cabal.project.local || true
148 - cat cabal.project.local || true
153 # Building...
149 # Building...
@@ -162,9 +158,18 @@ script:
162 - (cd ${PKGDIR_reflex} && ${CABAL} -vnormal check)
158 - (cd ${PKGDIR_reflex} && ${CABAL} -vnormal check)
163 # haddock...
159 # haddock...
164 - if ! $GHCJS ; then ${CABAL} v2-haddock $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output ; fi
160 - if ! $GHCJS ; then ${CABAL} v2-haddock $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output ; fi
165− # Building without installed constraints for packages in global-db...
161+ # Constraint sets
166− - rm -f cabal.project.local
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
167− - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all | color_cabal_output
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
168
173
169−# REGENDATA ["reflex.cabal"]
174+# REGENDATA ["reflex.cabal","--config","cabal.haskell-ci"]
170# EOF
175# EOF