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 -- ekg-core | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
- "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- ekg-core | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
98
+
- cat cabal.project || true
99
+
- cat cabal.project.local || true
93
100
# this builds all libraries and executables (without tests/benchmarks)
94
101
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks all
95
102
96
-
# Build with installed constraints for packages in global-db
97
-
- if $INSTALLED; then echo cabal new-build -w ${HC} --disable-tests --disable-benchmarks $(${HCPKG} list --global --simple-output --names-only | sed 's/\([a-zA-Z0-9-]\{1,\}\) */--constraint="\1 installed" /g') all | sh; else echo "Not building with installed constraints"; fi
98
-
99
103
# build & run tests, build benchmarks
100
104
- cabal new-build -w ${HC} ${TEST} ${BENCH} all
101
105
@@ -106,5 +110,8 @@ script:
106
110
- rm -rf ./dist-newstyle
107
111
- if $HADDOCK; then cabal new-haddock -w ${HC} ${TEST} ${BENCH} all; else echo "Skipping haddock generation";fi
108
112
113
+
# Build without installed constraints for packages in global-db
114
+
- 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