summaryrefslogtreecommitdiff
path: root/build-aux/appveyor-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/appveyor-build.sh')
-rwxr-xr-xbuild-aux/appveyor-build.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/build-aux/appveyor-build.sh b/build-aux/appveyor-build.sh
new file mode 100755
index 0000000..6472d91
--- /dev/null
+++ b/build-aux/appveyor-build.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+# Build on AppVeyor
+# Written by Reuben Thomas 2020.
+# This file is in the public domain.
+
+set -e
+
+./bootstrap
+CONFIGURE_ARGS=(--enable-relocatable --with-zemberek=check)
+if [[ "$ASAN" == "yes" ]]; then
+ CONFIGURE_ARGS+=(CFLAGS="-g3 -fsanitize=address -fsanitize=undefined" LDFLAGS="-fsanitize=address -fsanitize=undefined")
+fi
+./configure --enable-silent-rules "${CONFIGURE_ARGS[@]}"
+make
+make distcheck
+
+if [[ "$APPVEYOR_BUILD_WORKER_IMAGE" == "Ubuntu" ]]; then sudo locale-gen fr_FR.UTF-8; env LANG=fr_FR.UTF-8 make check ; fi