add sudo to remove files create under chroot

This commit is contained in:
mpromonet 2016-09-23 14:46:44 +00:00
parent 899ceea471
commit 36b6f003db

View File

@ -19,7 +19,7 @@ script:
- sudo mount --bind . rootfs/home
- sudo chroot rootfs bash -c "cd /home && cmake . && make && cpack ."
#run coverage test
- rm -rf CMakeCache.txt *.a CMakeFiles
- sudo rm -rf CMakeCache.txt *.a CMakeFiles
- cmake -DCOVERAGE=ON . && make && make test
after_success:
- coveralls --gcov-options '\-lp'