forked from phev-remote/phevcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (18 loc) · 744 Bytes
/
Dockerfile
File metadata and controls
18 lines (18 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM ubuntu:latest
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y install gcc cmake git
WORKDIR /phev
RUN git clone https://github.com/ThrowTheSwitch/Unity.git
RUN git clone https://github.com/papawattu/msg-core
RUN git clone https://github.com/DaveGamble/cJSON
WORKDIR /phev/Unity
RUN mkdir -p build && cd build && cmake .. && make && make install
WORKDIR /phev/msg-core
RUN mkdir -p build && cd build && cmake .. && make && make install
WORKDIR /phev/cJSON
RUN mkdir build && cd build && cmake .. && make && make install
WORKDIR /phev/phevcore
COPY . .
RUN mkdir build && cd build && cmake -DBUILD_TESTS=true .. && make
WORKDIR /phev/phevcore/build
CMD ["ctest","-j6","-T","test","--output-on-failure"]