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
# Overlay Hackage Package Index for GHC HEAD: https://github.com/hvr/head.hackage
80
79
- |
81
80
if $GHCHEAD; then
82
-
sed -i.bak 's/-- allow-newer:.*/allow-newer: *:base, *:template-haskell, *:ghc, *:Cabal/' ${HOME}/.cabal/config
81
+
sed -i 's/-- allow-newer: .*/allow-newer: *:base/' ${HOME}/.cabal/config
82
+
for pkg in $($HCPKG list --simple-output); do pkg=$(echo $pkg | sed 's/-[^-]*$//'); sed -i "s/allow-newer: /allow-newer: *:$pkg, /" ${HOME}/.cabal/config; done
- "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- OpenGLRaw | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
101
+
- cat cabal.project || true
102
+
- cat cabal.project.local || true
97
103
- if [ -f "./configure.ac" ]; then
98
104
(cd "." && autoreconf -i);
99
105
fi
@@ -107,27 +113,30 @@ install:
107
113
# any command which exits with a non-zero exit code causes the build to fail.
- "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- OpenGLRaw | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
124
+
- cat cabal.project || true
125
+
- cat cabal.project.local || true
116
126
# this builds all libraries and executables (without tests/benchmarks)
117
127
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks all
118
128
119
-
# Build with installed constraints for packages in global-db
120
-
- 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
121
-
122
129
# build & run tests, build benchmarks
123
130
- cabal new-build -w ${HC} ${TEST} ${BENCH} all
124
131
125
132
# cabal check
126
133
- (cd OpenGLRaw-* && cabal check)
127
134
128
135
# haddock
129
-
- rm -rf ./dist-newstyle
130
136
- if $HADDOCK; then cabal new-haddock -w ${HC} ${TEST} ${BENCH} all; else echo "Skipping haddock generation";fi
# Build without installed constraints for packages in global-db
139
+
- 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