diff options
Diffstat (limited to 'travis')
| -rw-r--r-- | travis/Dockerfile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/travis/Dockerfile b/travis/Dockerfile new file mode 100644 index 0000000..5381276 --- /dev/null +++ b/travis/Dockerfile | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | # vim:ft=Dockerfile | ||
| 2 | FROM debian:sid | ||
| 3 | |||
| 4 | RUN echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup | ||
| 5 | # Paper over occasional network flakiness of some mirrors. | ||
| 6 | RUN echo 'APT::Acquire::Retries "5";' > /etc/apt/apt.conf.d/80retry | ||
| 7 | |||
| 8 | # NOTE: I tried exclusively using gce_debian_mirror.storage.googleapis.com | ||
| 9 | # instead of httpredir.debian.org, but the results (Fetched 123 MB in 36s (3357 | ||
| 10 | # kB/s)) are not any better than httpredir.debian.org (Fetched 123 MB in 34s | ||
| 11 | # (3608 kB/s)). Hence, let’s stick with httpredir.debian.org (default) for now. | ||
| 12 | |||
| 13 | # Install mk-build-deps (for installing the i3 build dependencies), | ||
| 14 | # clang and clang-format-3.8 (for checking formatting and building with clang), | ||
| 15 | # lintian (for checking spelling errors), | ||
| 16 | # test suite dependencies (for running tests) | ||
| 17 | RUN apt-get update && \ | ||
| 18 | DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
| 19 | build-essential clang git autoconf automake libxcb-randr0-dev pkg-config libpam0g-dev \ | ||
| 20 | libcairo2-dev libxcb1-dev libxcb-dpms0-dev libxcb-image0-dev libxcb-util0-dev \ | ||
| 21 | libxcb-xrm-dev libev-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev \ | ||
| 22 | libxkbcommon-x11-dev && \ | ||
| 23 | rm -rf /var/lib/apt/lists/* | ||
| 24 | |||
| 25 | WORKDIR /usr/src | ||
