From 7c2e02d756711a46b88a99bc66ff8747adc0789a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 21 Mar 2020 20:26:34 +0300 Subject: Travis: incremental Docker builds --- .travis/Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis/Dockerfile b/.travis/Dockerfile index 48dc9fd..9ca711c 100644 --- a/.travis/Dockerfile +++ b/.travis/Dockerfile @@ -22,7 +22,8 @@ ARG configuration=Debug # We're on Travis, that's right. ENV TRAVIS=1 ENV TRAVIS_BUILD_DIR=/usr/src -COPY [".", "$TRAVIS_BUILD_DIR"] + +COPY ["cmake", "$TRAVIS_BUILD_DIR/cmake"] WORKDIR "$TRAVIS_BUILD_DIR" RUN ./cmake/boost/build/ci/travis.py \ @@ -30,8 +31,11 @@ RUN ./cmake/boost/build/ci/travis.py \ -- \ --user-config="$TRAVIS_BUILD_DIR/cmake/boost/toolchains/mingw-w64-$platform.jam" \ --with-filesystem \ - --with-program_options && \ - ./cmake/cmake/build/ci/travis.py \ + --with-program_options + +COPY [".", "$TRAVIS_BUILD_DIR"] + +RUN ./cmake/cmake/build/ci/travis.py \ --install /opt/pdb-repo \ -- \ -D "CMAKE_TOOLCHAIN_FILE=$TRAVIS_BUILD_DIR/cmake/cmake/toolchains/mingw-w64-$platform.cmake" \ -- cgit v1.2.3