summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2020-09-07 14:26:04 -0700
committerDave Beckett <dave@dajobe.org>2020-09-07 14:26:04 -0700
commit7ed36c67bb33c709f64e6f2135cc96558d840a5a (patch)
treec593544ac95a26d04c51708f49fcacc21c070717
parentce76c2946947c8aa19045f09c7d11877d5013407 (diff)
downloadraptor-7ed36c67bb33c709f64e6f2135cc96558d840a5a.tar.gz
Add experimental builds for Travis for cmake, ppc, arm64
-rw-r--r--.travis.yml67
1 files 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