-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux-tests.Dockerfile
More file actions
47 lines (40 loc) · 1.27 KB
/
linux-tests.Dockerfile
File metadata and controls
47 lines (40 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Test build and run tests on ubuntu
FROM ubuntu:latest
WORKDIR /app
# Install necessary packages
RUN apt-get update && \
apt-get install -y --no-install-recommends \
g++ \
cmake \
ninja-build \
make \
git \
ca-certificates \
libgtest-dev \
libspdlog-dev \
libvulkan-dev \
glslang-tools \
glslang-dev \
libglm-dev \
pkg-config \
libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev \
libavcodec-dev \
libavformat-dev \
libavutil-dev \
libswscale-dev
# && rm -rf /var/lib/apt/lists/*
# GLFW 3.4+ is required for GLFW_PLATFORM hints on Linux.
# Build X11-only to avoid Wayland issue
# See issue #68: https://github.com/jamylak/vsdf/issues/68
RUN git clone --depth 1 --branch 3.4 https://github.com/glfw/glfw.git /tmp/glfw && \
cmake -S /tmp/glfw -B /tmp/glfw/build -G Ninja \
-DGLFW_BUILD_TESTS=OFF -DGLFW_BUILD_EXAMPLES=OFF \
-DGLFW_BUILD_DOCS=OFF -DGLFW_INSTALL=ON \
-DGLFW_BUILD_WAYLAND=OFF && \
cmake --build /tmp/glfw/build && \
cmake --install /tmp/glfw/build
COPY . /app
RUN mkdir -p build && \
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=ON -B build -G Ninja .
RUN cmake --build build
CMD build/tests/vsdf_tests && build/tests/filewatcher/filewatcher_tests