pimutils / vdirsyncer

📇 Synchronize calendars and contacts.
https://vdirsyncer.pimutils.org/
Other
1.57k stars 163 forks source link

Run vdirsyncer tests inside Debian packager #676

Open untitaker opened 7 years ago

untitaker commented 7 years ago

The Dockerfile for making debian packages (scripts/dpkg.Dockerfile) should also run the barebones testsuite of the finished package.

WhyNotHugo commented 7 years ago

I've been considering dockerizing tests too.

A big upside, is that services (radicale, davical, etc) can be run as docker services, which are built and prepared in separate repos (and can be uploaded to docker hub), which should (a) greatly reduce test setup time (b) allow running all tests locally without having to install anything other than docker.

This simple Dockerfile actually runs basic tests fine:

FROM python:3.6-stretch

# RUN apt-get install libxml2 libxslt1.1 zlib1g
COPY ./ ./repo/
WORKDIR /repo/

# Compiled files tend to interfere:
RUN find . -iname "*.pyc" -delete

RUN make -e install-dev
RUN make -e install-test
RUN make -e test
untitaker commented 7 years ago

We have a separate issue for containerizing services, this one is about something else.

On 7 October 2017 22:15:41 GMT+02:00, Hugo Osvaldo Barrera notifications@github.com wrote:

I've been considering dockerizing tests too.

A big upside, is that services (radicale, davical, etc) can be run as docker services, which are build and prepared in separate repos (and can be uploaded to docker hub), which should (a) greatly reduce test setup time (b) allow running all tests locally without having to install anything other than docker.

This simple Dockerfile actually runs basic tests fine:

FROM python:3.6-stretch

# RUN apt-get install libxml2 libxslt1.1 zlib1g
COPY ./ ./repo/
WORKDIR /repo/

# Compiled files tend to interfere:
RUN find . -iname "*.pyc" -delete

RUN make -e install-dev
RUN make -e install-test
RUN make -e test

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/pimutils/vdirsyncer/issues/676#issuecomment-334962928

-- Sent from my Android device with K-9 Mail. Please excuse my brevity.