summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/.gitignore15
-rwxr-xr-xbuild-aux/travis-build.sh17
2 files changed, 32 insertions, 0 deletions
diff --git a/build-aux/.gitignore b/build-aux/.gitignore
new file mode 100644
index 0000000..9d4ab69
--- /dev/null
+++ b/build-aux/.gitignore
@@ -0,0 +1,15 @@
+/bootstrap.in
+/compile
+/config.guess
+/config.sub
+/depcomp
+/extract-trace
+/funclib.sh
+/inline-source
+/install-sh
+/ltmain.sh
+/mdate-sh
+/missing
+/options-parser
+/test-driver
+/texinfo.tex
diff --git a/build-aux/travis-build.sh b/build-aux/travis-build.sh
new file mode 100755
index 0000000..371326b
--- /dev/null
+++ b/build-aux/travis-build.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+# Build on Travis
+# 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 [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo locale-gen fr_FR.UTF-8; env LANG=fr_FR.UTF-8 make check ; fi