Skip to content

Commit

Permalink
Add Dockerfile, .travis.yml; Enable CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
LebedevRI committed Sep 27, 2016
1 parent 46a8df5 commit d6a0fa1
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker-images
.git
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This file is part of darktable.
# copyright (c) 2016 Roman Lebedev.
#
# darktable is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# darktable is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with darktable. If not, see <http://www.gnu.org/licenses/>.

sudo: required

services:
- docker

before_install:
# - docker build -t lebedevri/darktable-travis .
- docker pull lebedevri/darktable-travis

script:
- docker run -v $PWD:/build/darktable -w /build/darktable -e CC=gcc -e CXX=g++ lebedevri/darktable-travis sh -c "cd /build/darktable && rm -rf /build/darktable/build && mkdir /build/darktable/build && cd /build/darktable/build && cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../ && make"
- docker run -v $PWD:/build/darktable -w /build/darktable -e CC=clang-3.8 -e CXX=clang++-3.8 lebedevri/darktable-travis sh -c "cd /build/darktable && rm -rf /build/darktable/build && mkdir /build/darktable/build && cd /build/darktable/build && cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../ && make"
49 changes: 49 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This file is part of darktable.
# copyright (c) 2016 Roman Lebedev.
#
# darktable is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# darktable is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with darktable. If not, see <http://www.gnu.org/licenses/>.

# docker build -t darktable-travis .

FROM debian:testing
MAINTAINER Roman Lebedev <[email protected]>

ENV DEBIAN_FRONTEND noninteractive

# Paper over occasional network flakiness of some mirrors.
RUN echo 'APT::Acquire::Retries "5";' > /etc/apt/apt.conf.d/80retry

# Do not install recommended packages
RUN echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/80recommends

# Do not install suggested packages
RUN echo 'APT::Install-Suggests "false";' > /etc/apt/apt.conf.d/80suggests

# Assume yes
RUN echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/80forceyes

# Fix broken packages
RUN echo 'APT::Get::Fix-Missing "true";' > /etc/apt/apt.conf.d/80fixmissin

RUN apt-get update && \
apt-get install clang-3.8 cmake desktop-file-utils g++ gcc gettext git \
intltool libatk1.0-dev libcairo2-dev libcolord-dev libcolord-gtk-dev \
libcups2-dev libcurl4-gnutls-dev libexiv2-dev libflickcurl-dev \
libgdk-pixbuf2.0-dev libglib2.0-dev libgphoto2-dev libgraphicsmagick1-dev \
libgtk-3-dev libjpeg-dev libjson-glib-dev liblcms2-dev liblensfun-dev \
liblua5.2-dev libopenexr-dev libopenjp2-7-dev libosmgpsmap-1.0-dev \
libpango1.0-dev libpng-dev libpugixml-dev librsvg2-dev libsaxon-java \
libsdl1.2-dev libsecret-1-dev libsoup2.4-dev libsqlite3-dev libtiff5-dev \
libwebp-dev libx11-dev libxml2-dev libxml2-utils make perl po4a xsltproc && \
apt-get clean && rm -rf /var/lib/apt/lists/*

0 comments on commit d6a0fa1

Please sign in to comment.