aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-03-19 01:03:09 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-03-19 01:03:09 +0100
commit78ff3072127e6e9b0b3cde5c9618790b24d4c05c (patch)
tree7c9c8d24591956c54f6871600255cee3e0989c0b
parentd05d3f79b3ca9a923bfcd5c3979ebfcc8796fa9e (diff)
Improve travis CI build configuration
- Build for arm64 and ppc64el as well as amd64. - Use a newer Ubuntu version. - Add a separate build for the serial (non-threaded) block processor. - Add a Mac OS X target. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--.travis.yml82
1 files changed, 72 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml
index d6b88ed..a9a5173 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,22 +1,84 @@
language: c
-os:
- - linux
-
-compiler:
- - gcc
- - clang
-
addons:
apt:
packages:
- libzstd-dev liblzo2-dev liblz4-dev lzma-dev zlib1g-dev
-
-env:
- - CONFIG_OPTS="--enable-static --disable-shared --with-pthread"
+ homebrew:
+ packages:
+ - zstd lzo lz4 xz zlib
script:
- ./autogen.sh
- ./configure $CONFIG_OPTS
- make
- make check
+
+matrix:
+ include:
+ # gcc based builds for amd64, arm64, ppc64
+ - name: ubuntu-gcc-amd64
+ os: linux
+ arch: amd64
+ dist: bionic
+ compiler: gcc
+ env:
+ - CONFIG_OPTS="--with-pthread"
+
+ - name: ubuntu-gcc-arm64
+ os: linux
+ arch: arm64
+ dist: bionic
+ compiler: gcc
+ env:
+ - CONFIG_OPTS="--with-pthread"
+
+ - name: ubuntu-gcc-ppc64le
+ os: linux
+ arch: ppc64le
+ dist: bionic
+ compiler: gcc
+ env:
+ - CONFIG_OPTS="--with-pthread"
+
+ # clang based builds for amd64, arm64, ppc64
+ - name: ubuntu-clang-amd64
+ os: linux
+ arch: amd64
+ dist: bionic
+ compiler: clang
+ env:
+ - CONFIG_OPTS="--with-pthread"
+
+ - name: ubuntu-clang-arm64
+ os: linux
+ arch: arm64
+ dist: bionic
+ compiler: clang
+ env:
+ - CONFIG_OPTS="--with-pthread"
+
+ - name: ubuntu-clang-ppc64le
+ os: linux
+ arch: ppc64le
+ dist: bionic
+ compiler: clang
+ env:
+ - CONFIG_OPTS="--with-pthread"
+
+ # clang based build for macOS
+ - name: macOS
+ os: osx
+ env:
+ - CONFIG_OPTS="--with-pthread"
+
+ # special configurations
+ # -> build on Xenial to test liblz4 fallback
+ # -> try if building the serial block processor works
+ - name: ubuntu-gcc-amd64-nopthread
+ os: linux
+ arch: amd64
+ dist: xenial
+ compiler: gcc
+ env:
+ - CONFIG_OPTS="--without-pthread"