You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | grep -vE -- '^(tree-diff)$' | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
129
+
- "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(tree-diff)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
87
130
- cat cabal.project || true
88
131
- cat cabal.project.local || true
89
132
- if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
- "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | grep -vE -- '^(tree-diff)$' | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
153
+
- "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(tree-diff)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
111
154
- cat cabal.project || true
112
155
- cat cabal.project.local || true
113
156
# Building...
114
157
# this builds all libraries and executables (without tests/benchmarks)
115
-
- ${CABAL} new-build -w ${HC} --disable-tests --disable-benchmarks all
158
+
- ${CABAL} v2-build -w ${HC} --disable-tests --disable-benchmarks all | color_cabal_output
116
159
# Building with tests and benchmarks...
117
160
# build & run tests, build benchmarks
118
-
- ${CABAL} new-build -w ${HC} ${TEST} ${BENCH} all
161
+
- ${CABAL} v2-build -w ${HC} ${TEST} ${BENCH} all | color_cabal_output
119
162
# Testing...
120
-
- ${CABAL} new-test -w ${HC} ${TEST} ${BENCH} all
163
+
- if [ $HCNUMVER -ge 70600 ] ; then ${CABAL} v2-test -w ${HC} ${TEST} ${BENCH} all | color_cabal_output ; fi
121
164
# Doctest...
122
165
- if [ $HCNUMVER -ge 80000 ] ; then (cd tree-diff-* && doctest --fast -D__DOCTEST__ src) ; fi
123
166
# cabal check...
124
-
- (cd tree-diff-* && ${CABAL} check)
167
+
- (cd tree-diff-* && ${CABAL} -vnormal check)
125
168
# haddock...
126
-
- ${CABAL} new-haddock -w ${HC} ${TEST} ${BENCH} all
169
+
- ${CABAL} v2-haddock -w ${HC} ${TEST} ${BENCH} all | color_cabal_output
127
170
# Building without installed constraints for packages in global-db...
128
171
- rm -f cabal.project.local
129
-
- ${CABAL} new-build -w ${HC} --disable-tests --disable-benchmarks all
172
+
- ${CABAL} v2-build -w ${HC} --disable-tests --disable-benchmarks all | color_cabal_output
0 commit comments