diff options
author | Petr Vorel <petr.vorel@gmail.com> | 2019-07-18 21:49:19 +0200 |
---|---|---|
committer | Petr Vorel <petr.vorel@gmail.com> | 2019-07-19 23:06:24 +0200 |
commit | 2feca3f7dc0579b0f0aa9251feb236ac08afb214 (patch) | |
tree | f835a246d6b53f1b1b2ba68132338f0081313830 | |
parent | 9c3f61052b102fcb92f9eb0d107355ece7c700ae (diff) | |
download | iputils-2feca3f7dc0579b0f0aa9251feb236ac08afb214.tar.gz |
meson: Run make install
to test also installing phase. This requires to use sudo therefore
symlink travis user build directory to root.
(We could install into travis user home directory, but we want to have
root to be able to set caps with setcap-setuid.sh.)
+ use set -e in install and script section to stop testing on first error.
Acked-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
-rw-r--r-- | .travis.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 5143a87..caec7d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,11 +20,15 @@ matrix: - env: CC=gcc - env: CC=clang install: + - set -e - export NINJA_LATEST="https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip" - wget "$NINJA_LATEST" - unzip -q ninja-linux.zip -d build - export PATH="$PWD/build:$PATH" + - sudo ln -s $PWD/build /root - pip3 install meson script: + - set -e - meson builddir -DBUILD_RARPD=true -DBUILD_TRACEROUTE6=true -DBUILD_HTML_MANS=true - ninja -C builddir + - sudo sh -c 'PATH="/root/build:$PATH" make install' |