-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
72 lines (49 loc) · 1.47 KB
/
Dockerfile
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
FROM ubuntu
RUN apt update && \
apt upgrade -y && \
apt install valgrind -y && \
apt install gcovr -y && \
apt install lcov -y && \
apt install -qq g++-9 -y && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100
RUN apt update
RUN apt update && \
apt upgrade -y
RUN apt install valgrind -y
RUN apt install gcovr -y
RUN apt install lcov -y
RUN apt install libboost-all-dev -y
RUN apt install -qq g++-9 -y
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100
RUN apt install wget -y
RUN apt install cmake -y
RUN apt install curl -y
RUN apt-get install -y \
openssh-server \
g++ \
cmake \
git
RUN apt install libboost-all-dev -y
RUN apt-get install -y \
pkg-config \
libssl-dev \
libsasl2-dev
COPY . .
RUN cmake -DCMAKE_BUILD_TYPE=TestServer ./
RUN make || make
RUN ./Application || true
RUN cd CMakeFiles/Application.dir && \
lcov --directory . --capture --output-file coverage.info && \
lcov --remove coverage.info '/usr/*' "${HOME}"'/.cache/*' --output-file coverage.info && \
lcov --list coverage.info && \
cd .. && \
cd ..
RUN apt install qt5-default -y
RUN cmake -DCMAKE_BUILD_TYPE=TestClient ./
RUN make
RUN ./Application
RUN cd CMakeFiles/Application.dir && \
lcov --directory . --capture --output-file coverage.info && \
lcov --remove coverage.info '/usr/*' "${HOME}"'/.cache/*' --output-file coverage.info && \
lcov --list coverage.info
CMD echo "end"