From a93316d9de1f65fbe2abb25e63f98d4ce224296b Mon Sep 17 00:00:00 2001 From: Taylor Holberton Date: Mon, 17 Dec 2018 13:59:34 +0000 Subject: Testing all build systems in Travis CI --- .travis.yml | 6 +++--- scripts/travis-build.sh | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100755 scripts/travis-build.sh diff --git a/.travis.yml b/.travis.yml index 0e0533d..7c43bf1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,10 +8,10 @@ addons: packages: - doxygen - graphviz + - python3-pip before_script: - - mkdir $HOME/install + - pip3 install --user meson script: - - make - - make PREFIX=$HOME/install install + - scripts/travis-build.sh diff --git a/scripts/travis-build.sh b/scripts/travis-build.sh new file mode 100755 index 0000000..9639d88 --- /dev/null +++ b/scripts/travis-build.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +set -e +set -u + +make +make clean + +mkdir cmake-build +cd cmake-build +cmake .. +cmake --build . +cd .. + +$HOME/.local/bin/meson . meson-build +cd meson-build +ninja +cd .. -- cgit v1.2.3