Skip to content

Commit d6a0fa1

Browse files
committed
Add Dockerfile, .travis.yml; Enable CI.
1 parent 46a8df5 commit d6a0fa1

File tree

3 files changed

+79
-0
lines changed

3 files changed

+79
-0
lines changed

.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
docker-images
2+
.git

.travis.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This file is part of darktable.
2+
# copyright (c) 2016 Roman Lebedev.
3+
#
4+
# darktable is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# darktable is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU General Public License
15+
# along with darktable. If not, see <http://www.gnu.org/licenses/>.
16+
17+
sudo: required
18+
19+
services:
20+
- docker
21+
22+
before_install:
23+
# - docker build -t lebedevri/darktable-travis .
24+
- docker pull lebedevri/darktable-travis
25+
26+
script:
27+
- 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"
28+
- 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"

Dockerfile

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# This file is part of darktable.
2+
# copyright (c) 2016 Roman Lebedev.
3+
#
4+
# darktable is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# darktable is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU General Public License
15+
# along with darktable. If not, see <http://www.gnu.org/licenses/>.
16+
17+
# docker build -t darktable-travis .
18+
19+
FROM debian:testing
20+
MAINTAINER Roman Lebedev <[email protected]>
21+
22+
ENV DEBIAN_FRONTEND noninteractive
23+
24+
# Paper over occasional network flakiness of some mirrors.
25+
RUN echo 'APT::Acquire::Retries "5";' > /etc/apt/apt.conf.d/80retry
26+
27+
# Do not install recommended packages
28+
RUN echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/80recommends
29+
30+
# Do not install suggested packages
31+
RUN echo 'APT::Install-Suggests "false";' > /etc/apt/apt.conf.d/80suggests
32+
33+
# Assume yes
34+
RUN echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/80forceyes
35+
36+
# Fix broken packages
37+
RUN echo 'APT::Get::Fix-Missing "true";' > /etc/apt/apt.conf.d/80fixmissin
38+
39+
RUN apt-get update && \
40+
apt-get install clang-3.8 cmake desktop-file-utils g++ gcc gettext git \
41+
intltool libatk1.0-dev libcairo2-dev libcolord-dev libcolord-gtk-dev \
42+
libcups2-dev libcurl4-gnutls-dev libexiv2-dev libflickcurl-dev \
43+
libgdk-pixbuf2.0-dev libglib2.0-dev libgphoto2-dev libgraphicsmagick1-dev \
44+
libgtk-3-dev libjpeg-dev libjson-glib-dev liblcms2-dev liblensfun-dev \
45+
liblua5.2-dev libopenexr-dev libopenjp2-7-dev libosmgpsmap-1.0-dev \
46+
libpango1.0-dev libpng-dev libpugixml-dev librsvg2-dev libsaxon-java \
47+
libsdl1.2-dev libsecret-1-dev libsoup2.4-dev libsqlite3-dev libtiff5-dev \
48+
libwebp-dev libx11-dev libxml2-dev libxml2-utils make perl po4a xsltproc && \
49+
apt-get clean && rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)