From 525d37b9dbd98f40c8848c3a03b50ce9fd5adfa4 Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Wed, 26 Apr 2017 08:35:13 +0200 Subject: [PATCH] Build debs also during our travis job --- scripts/clean-build.sh | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/scripts/clean-build.sh b/scripts/clean-build.sh index b2de311..ad1b332 100755 --- a/scripts/clean-build.sh +++ b/scripts/clean-build.sh @@ -40,14 +40,24 @@ apt-get clean cd /anbox -# In cases where anbox comes directly from a checked out Android -# build environment we miss some symlinks which are present on -# the host and don't have a valid git repository in that case. -git clean -fdx . || true -git reset --hard || true +cleanup() { + # In cases where anbox comes directly from a checked out Android + # build environment we miss some symlinks which are present on + # the host and don't have a valid git repository in that case. + git clean -fdx . || true + git reset --hard || true +} + +cleanup mkdir build || rm -rf build/* cd build cmake .. make -j10 make test + +cleanup + +apt-get install -y build-essential curl devscripts gdebi-core +apt-get install -y $(gdebi --quiet --apt-line ./debian/control) +debuild -us -uc