build: Add Travis CI for Linux

This commit is contained in:
Hylke Bons 2017-02-21 18:26:23 +00:00
parent 4e50d51a12
commit 72dee067ff
2 changed files with 59 additions and 0 deletions

15
.travis.yml Normal file
View file

@ -0,0 +1,15 @@
sudo: required
services:
- docker
os:
- linux
before_install:
- cd build/ci/
- docker pull ubuntu:xenial
script:
- docker build -t "sparkleshare:nightly" .

44
build/ci/Dockerfile Normal file
View file

@ -0,0 +1,44 @@
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y \
desktop-file-utils \
git \
gtk-sharp3-gapi \
intltool \
libdbus-glib2.0-cil-dev \
libgtk3.0-cil-dev \
libsoup2.4-dev \
libtool-bin \
libwebkit2gtk-4.0 \
mono-devel \
mono-mcs \
nant \
xsltproc
RUN git clone https://github.com/hbons/notify-sharp && \
cd notify-sharp/ && \
./autogen.sh --disable-docs && \
make && make install
RUN cd ../
RUN git clone https://github.com/hbons/soup-sharp && \
cd soup-sharp/ && \
./autogen.sh && \
make && make install
RUN cd ../
RUN git clone https://github.com/hbons/webkit2gtk-sharp && \
cd webkit2gtk-sharp/ && \
./autogen.sh && \
make && make install
RUN cd ../
RUN git clone https://github.com/hbons/SparkleShare && \
cd SparkleShare/ && \
./autogen.sh && \
make && make install