Nheko-Reborn / mtxclient

Client API library for Matrix, built on top of libcurl
MIT License
40 stars 25 forks source link

Create pre warmed test docker image #59

Open jfowl opened 3 years ago

jfowl commented 3 years ago

As discussed with @deepbluev7, I woul like to run the mtxclient tests against the Conduit Matrix Homeserver in Conduit's CI.

mtxclient's test job currently needs to compile the project first, which takes some time. To avoid that during Conduit's CI runs, I envision the following:

Rough suggestion for how that could look like:

FROM ubuntu:18.04
RUN mkdir /mtxclient
COPY . /mtxclient/
WORKDIR /mtxclient/
RUN ... # Basically all these lines: https://nheko.im/nheko-reborn/mtxclient/-/blob/master/.gitlab-ci.yml#L54-80