Merge pull request #191 from morphis/f/build-debs-in-travis
Build debs also during our travis job
This commit is contained in:
commit
4f7a97a956
2 changed files with 18 additions and 5 deletions
1
debian/anbox-common.install
vendored
1
debian/anbox-common.install
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
etc/X11/Xsession.d/68anbox
|
etc/X11/Xsession.d/68anbox
|
||||||
usr/share/upstart/sessions/anbox.conf
|
usr/share/upstart/sessions/anbox.conf
|
||||||
usr/lib/systemd/user/anbox.service
|
usr/lib/systemd/user/anbox.service
|
||||||
|
usr/lib/systemd/user/default.target.wants/anbox.service
|
||||||
|
|
|
||||||
|
|
@ -40,14 +40,26 @@ apt-get clean
|
||||||
|
|
||||||
cd /anbox
|
cd /anbox
|
||||||
|
|
||||||
# In cases where anbox comes directly from a checked out Android
|
cleanup() {
|
||||||
# build environment we miss some symlinks which are present on
|
# In cases where anbox comes directly from a checked out Android
|
||||||
# the host and don't have a valid git repository in that case.
|
# build environment we miss some symlinks which are present on
|
||||||
git clean -fdx . || true
|
# the host and don't have a valid git repository in that case.
|
||||||
git reset --hard || true
|
if [ -d .git ] ; then
|
||||||
|
git clean -fdx .
|
||||||
|
git reset --hard
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
cleanup
|
||||||
|
|
||||||
mkdir build || rm -rf build/*
|
mkdir build || rm -rf build/*
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
make -j10
|
make -j10
|
||||||
make test
|
make test
|
||||||
|
|
||||||
|
cleanup
|
||||||
|
|
||||||
|
apt-get install -y build-essential curl devscripts gdebi-core dkms dh-systemd
|
||||||
|
apt-get install -y $(gdebi --quiet --apt-line ./debian/control)
|
||||||
|
debuild -us -uc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue