diff options
author | Reuben Thomas <rrt@sc3d.org> | 2020-07-29 16:30:19 +0100 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2020-07-29 20:44:37 +0100 |
commit | 7e8fa6eba1d6717f954a7e4397a658999f54fe98 (patch) | |
tree | d8f1b7da4659727596dde60fabde12b91fc73fd6 /build-aux | |
parent | 583e9e8a408536be6db0a9d217ba5c5217bc78f9 (diff) | |
download | enchant-7e8fa6eba1d6717f954a7e4397a658999f54fe98.tar.gz |
Travis: update .travis.yml
Fix warnings and an error, use build-aux/travis-build.sh to support building
with ASAN properly.
Get brew packages using Travis config, not from command line.
Use default version of osx.
Diffstat (limited to 'build-aux')
-rw-r--r-- | build-aux/.gitignore | 15 | ||||
-rwxr-xr-x | build-aux/travis-build.sh | 17 |
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 |