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
- "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- servant-multipart | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
73
+
- "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | grep -vE -- '^(servant-multipart)$' | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
74
74
- cat cabal.project || true
75
75
- cat cabal.project.local || true
76
-
- if [ -f "./configure.ac" ]; then
77
-
(cd "." && autoreconf -i);
78
-
fi
76
+
- if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
- "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- servant-multipart | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
99
+
- "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | grep -vE -- '^(servant-multipart)$' | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
96
100
- cat cabal.project || true
97
101
- cat cabal.project.local || true
98
102
# this builds all libraries and executables (without tests/benchmarks)
99
-
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks all
103
+
- ${CABAL} new-build -w ${HC} --disable-tests --disable-benchmarks all
100
104
101
105
# build & run tests, build benchmarks
102
-
- cabal new-build -w ${HC} ${TEST} ${BENCH} all
106
+
- ${CABAL} new-build -w ${HC} ${TEST} ${BENCH} all
107
+
- if [ "x$TEST" = "x--enable-tests" ]; then ${CABAL} new-test -w ${HC} ${TEST} ${BENCH} all; fi
103
108
104
109
# cabal check
105
-
- (cd servant-multipart-* && cabal check)
110
+
- (cd servant-multipart-* && ${CABAL} check)
106
111
107
112
# haddock
108
-
- if $HADDOCK; then cabal new-haddock -w ${HC} ${TEST} ${BENCH} all; else echo "Skipping haddock generation";fi
113
+
- ${CABAL} new-haddock -w ${HC} ${TEST} ${BENCH} all
109
114
110
115
# Build without installed constraints for packages in global-db
111
-
- if $UNCONSTRAINED; then rm -f cabal.project.local; echo cabal new-build -w ${HC} --disable-tests --disable-benchmarks all; else echo "Not building without installed constraints"; fi
0 commit comments