on develop help sign in
ci: Fix travis config
commit70b7bebd44e7e6507d5e7bb94e1e0e017ef3eccb authorAli Abrar <aliabrar@gmail.com> dateMon 5 Aug 2019, 02:06 (7 years ago) parent28b4add
1 file changed+10−7
.travis.yml+10−7
.travis.yml+10−7
@@ -119,14 +119,14 @@ install:
119119 - touch cabal.project
120120 - |
121121 echo "packages: ." >> cabal.project
122− - "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"
123122 - cat cabal.project || true
124123 - cat cabal.project.local || true
125124 - if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
126125 - ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH} | color_cabal_output
126+ - ${CABAL} v2-configure $WITHCOMPILER ${TEST} ${BENCH} | color_cabal_output
127127 - "cat cabal.project.freeze | sed -E 's/^(constraints: *| *)//' | sed 's/any.//'"
128− - rm cabal.project.freeze
129− - rm cabal.project.local
128+ - rm cabal.project.freeze || true
129+ - rm cabal.project.local || true
130130script:
131131 - DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
132132 # Packaging...
@@ -143,10 +143,9 @@ script:
143143 - |
144144 echo "packages: ${PKGDIR_reflex}" >> cabal.project
145145 - |
146− - "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"
147146 - cat cabal.project || true
148147 - cat cabal.project.local || true
149− - rm cabal.project.local
148+ - rm cabal.project.local || true
150149 # Building...
151150 # this builds all libraries and executables (without tests/benchmarks)
152151 - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all | color_cabal_output
@@ -160,12 +159,16 @@ script:
160159 # haddock...
161160 - if ! $GHCJS && [ $HCNUMVER -ge 80000 ] && [ $HCNUMVER -lt 80606 ] ; then ${CABAL} v2-haddock $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output ; fi
162161 # Building without installed constraints for packages in global-db...
163− - rm -f cabal.project.local
162+ - rm -f cabal.project.local || true
164163 - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all | color_cabal_output
165164 # Constraint sets
166− - rm -rf cabal.project.local
165+ - rm -rf cabal.project.local || true
167166 # Constraint set no-th
168167 - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='reflex -use-template-haskell' all | color_cabal_output
168+ # Constraint sets
169+ - rm -rf cabal.project.local || true
170+ # Constraint set don't use split these/semialign
171+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='reflex -split-these' all | color_cabal_output
169172
170173# REGENDATA ["--config=cabal.haskell-ci","cabal.project"]
171174# EOF