diff options
author | Oleg Morozenkov <m@oleg.rocks> | 2018-07-23 01:56:42 +0300 |
---|---|---|
committer | Oleg Morozenkov <m@oleg.rocks> | 2018-07-23 01:56:42 +0300 |
commit | d47ee877be5d1175bdc36f2d87881ddaf875a8e9 (patch) | |
tree | 7fd20cdc1236fe6b832ae980de12afd7071ebab9 /Dockerfile_test | |
parent | cea20d4078f2088dea0dd589f1cc9dd7ee22461b (diff) |
Refactor http clients, fix webhook server, add more samples, change tabs to 4 spaces
Diffstat (limited to 'Dockerfile_test')
-rw-r--r-- | Dockerfile_test | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/Dockerfile_test b/Dockerfile_test index e1093bf..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 libcurl4-openssl-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 |