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 80404 ]; then cabal new-install -w ${HC} -j2 --symlink-bindir=$HOME/.local/bin hlint --constraint='hlint ==2.1.*'; fi
74
79
- "printf 'packages: \".\"\\n' > cabal.project"
75
-
- 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
76
84
- if [ -f "./configure.ac" ]; then
77
85
(cd "." && autoreconf -i);
78
86
fi
@@ -86,31 +94,35 @@ install:
86
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
95
106
# this builds all libraries and executables (without tests/benchmarks)
96
107
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks all
97
108
98
-
99
109
# build & run tests, build benchmarks
100
110
- cabal new-build -w ${HC} ${TEST} ${BENCH} all
101
111
102
112
# doctest
103
113
- if [ $HCNUMVER -ge 80000 ]; then (cd hackage-db-* && doctest src); fi
104
114
105
115
# hlint
106
-
- if [ $HCNUMVER -eq 80202 ]; then (cd hackage-db-* && hlint src); fi
116
+
- if [ $HCNUMVER -eq 80403 ]; then (cd hackage-db-* && hlint src); fi
107
117
108
118
# cabal check
109
119
- (cd hackage-db-* && cabal check)
110
120
111
121
# haddock
112
-
- rm -rf ./dist-newstyle
113
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