aboutsummaryrefslogtreecommitdiff
path: root/linux/make_artifacts.sh
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-01-20 10:41:58 -0800
committerJohn MacFarlane <[email protected]>2023-01-20 10:41:58 -0800
commit48b1370f94df2abc447030559c4284d5b1cedb8d (patch)
tree212562769935e9b8ebb3801c75a22162e9b6f58d /linux/make_artifacts.sh
parent6ebabd211882c245d05f0b8278c518ebacec2a4d (diff)
make_artifacts.sh: remove cabal test, add sanity checks.
Check that the binary has lua and server support, and that it contains baked-in templates.
Diffstat (limited to 'linux/make_artifacts.sh')
-rw-r--r--linux/make_artifacts.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/linux/make_artifacts.sh b/linux/make_artifacts.sh
index 41700d409..1da9efbd3 100644
--- a/linux/make_artifacts.sh
+++ b/linux/make_artifacts.sh
@@ -23,12 +23,17 @@ ghc --version
cabal update
cabal clean
-cabal test $CABALOPTS --ghc-options="$GHCOPTS" all
cabal install $CABALOPTS --ghc-options="$GHCOPTS" --install-method=copy --installdir="$ARTIFACTS" pandoc-cli
# Confirm that we have static builds
file "$ARTIFACTS/pandoc" | grep "statically linked"
+# Confirm that it has +lua and +server support
+"./$ARTIFACTS/pandoc --version" | grep -q '+server +lua'
+
+# Confirm that it has data files baked in:
+strings "./$ARTIFACTS/pandoc" | grep -q '\$title\$'
+
make_deb() {
VERSION=$("$ARTIFACTS"/pandoc --version | awk '{print $2; exit;}')
REVISION=${REVISION:-1}