提交 dfe91341 编写于 作者: S Simon Fels 提交者: GitHub

Merge pull request #25 from morphis/feature/travis-support

Add initial travis build configuration
language: cpp
os: linux
sudo: required
services:
- docker
script:
- scripts/build-with-docker.sh
#!/bin/sh
docker pull ubuntu:16.04
docker run -i -t -v $PWD:/anbox ubuntu:16.04 /anbox/scripts/clean-build.sh
#!/bin/sh
set -ex
apt-get update -qq
apt-get install -qq -y \
build-essential \
cmake \
cmake-data \
debhelper \
dbus \
git \
google-mock \
libboost-dev \
libboost-filesystem-dev \
libboost-log-dev \
libboost-iostreams-dev \
libboost-program-options-dev \
libboost-system-dev \
libboost-test-dev \
libboost-thread-dev \
libcap-dev \
libdbus-1-dev \
libdbus-cpp-dev \
libegl1-mesa-dev \
libgles2-mesa-dev \
libglib2.0-dev \
libglm-dev \
libgtest-dev \
liblxc1 \
libprotobuf-dev \
libsdl2-dev \
lxc-dev \
pkg-config \
protobuf-compiler
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
mkdir build || rm -rf build/*
cd build
cmake ..
make -j10
make test
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册