From 65769f9d3cf4309b2c53eb665df483cd3499e82d Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Wed, 3 Apr 2019 10:50:25 -0400 Subject: [PATCH] travis: Run cpp-coveralls without sudo Change file and directory ownerships so that we can run cpp-coveralls without sudo. Signed-off-by: Stefan Berger --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8d424511..788c766e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,7 +51,9 @@ matrix: sudo make -j$(nproc) check && popd after_success: - sudo cpp-coveralls -b src -e tests -e swtpm --gcov-options '\-lp' + uidgid="$(id -nu):$(id -ng)" && + sudo chown -R ${uidgid} ./ && + cpp-coveralls -b src -e tests -e swtpm --gcov-options '\-lp' - env: CONFIG="--with-openssl --prefix=/usr --with-tpm2" "TARGET=check" NPROC="sysctl -n hw.ncpu" CFLAGS="-I/usr/local/opt/openssl/include" LDFLAGS="-L/usr/local/opt/openssl/lib"