summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-02-09 00:26:55 +0100
committerNico Williams <nico@cryptonector.com>2018-02-20 12:11:28 -0500
commitbafb43e58985b8db21a8c338a7637e6f0e35051f (patch)
tree01d873bcdc9374a2b940dcb7908864337e71ba96
parentc163e88af3b84cee9d98b8ea259ad5ee422dcc03 (diff)
Build and run tests against musl libc using Alpine Linux on Travis
-rw-r--r--.travis.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index fa262b47..99914b94 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -111,6 +111,34 @@ jobs:
- <<: *test-osx
compiler: clang
+
+ # Build with gcc and run tests on Alpine Linux v3.7 (inside chroot).
+ # Note: Alpine uses musl libc.
+ - &test-alpine
+ stage: test
+ os: linux
+ language: minimal
+ compiler: gcc
+ sudo: true
+
+ before_install:
+ - "wget 'https://raw.githubusercontent.com/alpinelinux/alpine-chroot-install/v0.7.0/alpine-chroot-install' \
+ && echo '090d323d887ef3a2fd4e752428553f22a52b87bb alpine-chroot-install' | sha1sum -c || travis_terminate 1"
+ - alpine() { /alpine/enter-chroot -u "$USER" "$@"; }
+
+ install:
+ - sudo sh alpine-chroot-install -b v3.7 -a "$ARCH"
+ -p 'build-base automake autoconf bison libtool oniguruma-dev'
+
+ before_script:
+ - autoreconf -if
+
+ script:
+ - alpine ./configure --disable-docs
+ - alpine make
+ - alpine make check
+
+
notifications:
email: false