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
# Here starts the actual work to be performed for the package under test;
124
125
# any command which exits with a non-zero exit code causes the build to fail.
@@ -149,5 +150,27 @@ script:
149
150
# Build without installed constraints for packages in global-db
150
151
- 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
151
152
153
+
# Check the fgl-arbitrary sub-package
154
+
- cd fgl-arbitrary
155
+
# Relying upon fgl being installed above when testing sdist, and that
156
+
# it doesn't require any other dependencies not used by fgl.
- "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- fgl | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
166
+
- cat cabal.project || true
167
+
- cat cabal.project.local || true
168
+
# this builds all libraries and executables (without tests/benchmarks)
169
+
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks all
170
+
171
+
# build & run tests, build benchmarks
172
+
- cabal new-build -w ${HC} ${TEST} ${BENCH} all
173
+
- if [ "x$TEST" = "x--enable-tests" ]; then cabal new-test -w ${HC} ${TEST} ${BENCH} all; fi
0 commit comments