]> git.donarmstrong.com Git - debbugs.git/blobdiff - .travis/Dockerfile
allow specifying the dist in source_to_binary (for DB actions)
[debbugs.git] / .travis / Dockerfile
index e4bfa9538be6c769a801d5f8ae2348a599e7400c..c5fbffa5a4152d848b50ca1543efcdd300b52476 100644 (file)
@@ -6,10 +6,22 @@ RUN apt-get -qq update; \
 COPY debian/control debian/control
 COPY debian/changelog debian/changelog
 RUN dch -r -m '';
-RUN apt-get -qq update; \
+RUN echo 'deb http://deb.debian.org/debian/ sid main' \
+ > /etc/apt/sources.list.d/sid.list
+RUN echo 'deb http://deb.debian.org/debian/ stretch-backports main' \
+ > /etc/apt/sources.list.d/stretchbackports.list
+RUN echo '\nPackage: libtest-postgresql-perl\nPin: release a=unstable\nPin-Priority: 500\n\n'\
+ > /etc/apt/preferences
+RUN echo '\nPackage: *\nPin: release a=unstable\nPin-Priority: 1\n\n'\
+ >> /etc/apt/preferences
+RUN echo '\nPackage: *\nPin: release a=stretch-backports\nPin-Priority: 500\n\n'\
+ >> /etc/apt/preferences
+# work around slim image interacting with missing documentation
+RUN for a in $(seq 1 7); do mkdir -p /usr/share/man/man$a; done;
+RUN apt-get -qq update && \
  mk-build-deps --install \
  --tool 'apt-get -y -o Debug:pkgProblemResolver=yes --no-install-recommends' \
- debian/control; \
- rm -rf /var/lib/apt/lists/*; \
+ debian/control && \
+ rm -rf /var/lib/apt/lists/* && \
  apt-get clean;
 COPY . debbugs
\ No newline at end of file