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
{{ message }}
This repository was archived by the owner on Feb 27, 2024. It is now read-only.
- if [ $HCNUMVER -ge 80000 ]; then cabal new-install -w ${HC} -j2 --symlink-bindir=$HOME/.local/bin doctest --constraint='doctest ==0.16.*'; fi
78
+
- if [ $HCNUMVER -eq 80602 ]; then cabal new-install -w ${HC} -j2 --symlink-bindir=$HOME/.local/bin hlint --constraint='hlint ==2.1.*'; fi
92
79
- "printf 'packages: \".\"\\n' > cabal.project"
93
-
- cat cabal.project
80
+
- touch cabal.project.local
81
+
- "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- hackage-db | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
82
+
- cat cabal.project || true
83
+
- cat cabal.project.local || true
94
84
- if [ -f "./configure.ac" ]; then
95
85
(cd "." && autoreconf -i);
96
86
fi
@@ -104,31 +94,35 @@ install:
104
94
# 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 -- hackage-db | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
104
+
- cat cabal.project || true
105
+
- cat cabal.project.local || true
113
106
# this builds all libraries and executables (without tests/benchmarks)
114
107
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks all
115
108
116
-
117
109
# build & run tests, build benchmarks
118
110
- cabal new-build -w ${HC} ${TEST} ${BENCH} all
119
111
120
112
# doctest
121
113
- if [ $HCNUMVER -ge 80000 ]; then (cd hackage-db-* && doctest src); fi
122
114
123
115
# hlint
124
-
- if [ $HCNUMVER -eq 80202 ]; then (cd hackage-db-* && hlint src); fi
116
+
- if [ $HCNUMVER -eq 80602 ]; then (cd hackage-db-* && hlint src); fi
125
117
126
118
# cabal check
127
119
- (cd hackage-db-* && cabal check)
128
120
129
121
# haddock
130
-
- rm -rf ./dist-newstyle
131
122
- 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
125
+
- 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