diff options
author | Taylor Holberton <taylorcholberton@gmail.com> | 2018-12-17 13:59:34 +0000 |
---|---|---|
committer | Taylor Holberton <taylorcholberton@gmail.com> | 2018-12-17 13:59:34 +0000 |
commit | a93316d9de1f65fbe2abb25e63f98d4ce224296b (patch) | |
tree | 1e27ef29ce412a70f24e88d30cd79b7550c430b9 | |
parent | a4ac5f5a3b09f3d646ad8e777f43810a8c5ba3da (diff) |
Testing all build systems in Travis CI
-rw-r--r-- | .travis.yml | 6 | ||||
-rwxr-xr-x | scripts/travis-build.sh | 18 |
2 files changed, 21 insertions, 3 deletions
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 .. |