Commit 548dff28 authored by Tim Rühsen's avatar Tim Rühsen

Travis CI: Initial commit

parent 4caef557
Pipeline #7880720 passed with stages
in 9 minutes and 55 seconds
#!/bin/bash
set -e
CONFIGURE_OPTIONS=()
export CFLAGS="-O0 -g"
if [[ $TRAVIS_OS_NAME = 'osx' ]]; then
CONFIGURE_OPTIONS+=("")
else
CONFIGURE_OPTIONS+=("--enable-fsanitize-asan --enable-fsanitize-ubsan")
CONFIGURE_OPTIONS+=("--enable-valgrind-tests")
fi
./bootstrap
# On OSX we are unable to find the idn2 dylibs without installing first
# However `make install` on linux systems fail due to insufficient permissions
if [[ $TRAVIS_OS_NAME = 'osx' ]]; then
./configure --disable-doc
make install -j3
make check -j3 || (cat tests/test-suite.log && exit 1)
exit 0
fi
for OPTS in "${CONFIGURE_OPTIONS[@]}"; do
./configure -C $OPTS
make clean check -j3 || (cat tests/test-suite.log && exit 1)
done
make distcheck -j3
sudo: required
dist: trusty
language: c
os:
# - linux
- osx
compiler:
- gcc
- clang
git:
depth: 3
matrix:
exclude:
- os: osx
compiler: gcc
cache: ccache
addons:
apt:
packages:
- autoconf
- automake
- autopoint
- libtool
- gettext
- libunistring0
- libc6
- valgrind
- lcov
before_install:
- echo $TRAVIS_OS_NAME
- ./.travis_setup.sh
script: ./.travis.sh
#!/bin/bash
if [[ "$TRAVIS_OS_NAME" = "osx" ]]; then
brew update
brew outdated autoconf || brew upgrade autoconf
brew outdated automake || brew upgrade automake
brew outdated libtool || brew upgrade libtool
brew install gengetopt
brew install gperf
brew install gettext
brew link --force gettext
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment