travis: Don't build TSS2 as root
authorTobias Brunner <tobias@strongswan.org>
Fri, 9 Nov 2018 15:14:23 +0000 (16:14 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 21 Nov 2018 13:36:38 +0000 (14:36 +0100)
This might prevent ccache from overwriting files in later builds.

scripts/test.sh

index f79d2d9..8f573ce 100755 (executable)
@@ -49,7 +49,8 @@ build_tss2()
        curl -L $TSS2_SRC | tar xz -C $TRAVIS_BUILD_DIR/.. &&
        cd $TSS2_DIR &&
        ./configure &&
-       sudo make -j4 install >/dev/null &&
+       make -j4 >/dev/null &&
+       sudo make install >/dev/null &&
        sudo ldconfig || exit $?
        cd -
 }