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 <stefanb@linux.ibm.com>
This commit is contained in:
Stefan Berger 2019-04-03 10:50:25 -04:00 committed by Stefan Berger
parent 7620f55ac1
commit 65769f9d3c

View File

@ -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"