summaryrefslogtreecommitdiff
path: root/Dockerfile_test
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2018-07-23 02:35:50 +0300
committerOleg Morozenkov <m@oleg.rocks>2018-07-23 02:35:50 +0300
commit98b8b7e4338b71ee46c4301b0bf2ae667be9a99d (patch)
tree32f8b0d32048b2d83b57773c0efa3db9600b8701 /Dockerfile_test
parent1dd3affe306793d2129f121c11e43c45ae8690da (diff)
parent167e3e7607e43a0f06c7f87ced94f481e6525b0e (diff)
Merge branch 'master' into nicholascw-master
Diffstat (limited to 'Dockerfile_test')
-rw-r--r--Dockerfile_test27
1 files changed, 18 insertions, 9 deletions
diff --git a/Dockerfile_test b/Dockerfile_test
index a2f7b5f..8d4bec0 100644
--- a/Dockerfile_test
+++ b/Dockerfile_test
@@ -2,31 +2,40 @@ FROM debian:stretch
MAINTAINER Oleg Morozenkov <a@reo7sp.ru>
RUN apt-get -qq update && \
- apt-get -qq install -y g++ make binutils cmake libssl-dev libboost-system-dev libboost-test-dev
+ apt-get -qq install -y g++ make binutils cmake libssl-dev libboost-system-dev libboost-test-dev libcurl4-openssl-dev
-WORKDIR /tmp/tgbot-cpp
+WORKDIR /usr/src/tgbot-cpp
COPY include include
COPY src src
COPY test test
-COPY samples samples
COPY CMakeLists.txt ./
RUN cmake -DENABLE_TESTS=ON . && \
- make -j4 && \
- make install
+ make -j4 && \
+ make install
+
+COPY samples samples
+
+WORKDIR /usr/src/tgbot-cpp/samples/echobot
+RUN rm -rf CMakeCache.txt CMakeFiles/ && \
+ cmake . && make -j4
+
+WORKDIR /usr/src/tgbot-cpp/samples/echobot-curl-client
+RUN rm -rf CMakeCache.txt CMakeFiles/ && \
+ cmake . && make -j4
-WORKDIR /tmp/tgbot-cpp/samples/echobot
+WORKDIR /usr/src/tgbot-cpp/samples/echobot-webhook-server
RUN rm -rf CMakeCache.txt CMakeFiles/ && \
cmake . && make -j4
-WORKDIR /tmp/tgbot-cpp/samples/inline-keyboard
+WORKDIR /usr/src/tgbot-cpp/samples/inline-keyboard
RUN rm -rf CMakeCache.txt CMakeFiles/ && \
cmake . && make -j4
-WORKDIR /tmp/tgbot-cpp/samples/photo
+WORKDIR /usr/src/tgbot-cpp/samples/photo
RUN rm -rf CMakeCache.txt CMakeFiles/ && \
cmake . && make -j4
-WORKDIR /tmp/tgbot-cpp
+WORKDIR /usr/src/tgbot-cpp
ENV CTEST_OUTPUT_ON_FAILURE=1
CMD make test