From 7ed36c67bb33c709f64e6f2135cc96558d840a5a Mon Sep 17 00:00:00 2001 From: Dave Beckett Date: Mon, 7 Sep 2020 14:26:04 -0700 Subject: Add experimental builds for Travis for cmake, ppc, arm64 --- .travis.yml | 67 +++++++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 52 insertions(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3bb9cd1e..28733f53 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,35 +3,72 @@ # http://docs.travis-ci.com/user/languages/c/ # http://docs.travis-ci.com/user/build-configuration/ # http://docs.travis-ci.com/user/multi-os/ +# https://docs.travis-ci.com/user/build-matrix/ # +# focal: Ubuntu 20.04 LTS +# bionic: Ubuntu 18.04 LTS +dist: focal + language: c branches: only: - master -# matrix of compilers -compiler: - - gcc - - clang - - c++ - -# matrix of OSes (feature flagged; not enabled now) -os: - - linux - - osx - -# overall matrix configuration matrix: + include: + - name "gcc on Linux" + os: linux + compiler: gcc + - name "clang on Linux" + os: linux + compiler: clang + - name "c++ on Linux" + os: linux + compiler: c++ + - name "clang on OSX" + os: osx + compiler: clang + - name "cmake on Linux" + os: linux + compiler: gcc + env: BUILD_CMAKE=yes EXPERIMENTAL=yes + - name "gcc on Linux ppc" + os: linux + compiler: gcc + arch: ppc64le + dist: bionic + env: EXPERIMENTAL=yes + - name "gcc on Linux arm" + os: linux + compiler: gcc + arch: arm64 + dist: bionic + env: EXPERIMENTAL=yes +# windows env has no automake, autoconf via chocolately +# - name "windows" +# os: windows +# env: EXPERIMENTAL=yes allow_failures: - - os: osx + - env: EXPERIMENTAL=yes -install: +before_install: + - if [ "$TRAVIS_OS_NAME" = "windows" ]; then BUILD_CMAKE="yes"; fi - env | sort + +install: - if [ "$TRAVIS_OS_NAME" = "" ]; then TRAVIS_OS_NAME=linux; fi - if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./scripts/install-bison3.sh; sudo apt-get update -qq -y; sudo apt-get install -qq -y gtk-doc-tools libyajl-dev; fi - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; brew install bison gtk-doc yajl; ln -sf /usr/local/Cellar/bison/*/bin/bison /usr/local/bin/bison; fi + - if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install WinFlexBison; fi -script: ./autogen.sh --disable-gtk-doc && make && make test +script: + - | + ./autogen.sh --disable-gtk-doc + if [ "$BUILD_CMAKE" = yes ]; then + mkdir -p work && cd work && cmake .. && make && ctest + else + make && make test + fi -- cgit v1.2.1