diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-18 01:30:32 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-25 02:03:59 +0300 |
commit | efc51b1646e39ded4ee9fa6d4e038c1fc0407677 (patch) | |
tree | 7f5458405efa255a092b5c59210ae08c094bc36c /.travis/Dockerfile | |
parent | mingw builds: lowercase library names (diff) | |
download | winapi-debug-efc51b1646e39ded4ee9fa6d4e038c1fc0407677.tar.gz winapi-debug-efc51b1646e39ded4ee9fa6d4e038c1fc0407677.zip |
add Travis configuration
Diffstat (limited to '')
-rw-r--r-- | .travis/Dockerfile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.travis/Dockerfile b/.travis/Dockerfile new file mode 100644 index 0000000..fe5af2f --- /dev/null +++ b/.travis/Dockerfile @@ -0,0 +1,39 @@ +FROM ubuntu:focal + +RUN apt-get update -yq && \ + apt-get install -yq --no-install-recommends \ + # Used to download Boost: + ca-certificates \ + # Used to bootstrap Boost: + g++ \ + # Build scripts: + python3 \ + # Build tools: + cmake \ + make \ + mingw-w64 + +ARG travis_boost_version=1.65.0 +ARG platform=x86 +ARG configuration=Debug + +# We're on Travis, that's right. +ENV TRAVIS=1 +ENV TRAVIS_BUILD_DIR=/usr/src +COPY [".", "$TRAVIS_BUILD_DIR"] +WORKDIR "$TRAVIS_BUILD_DIR" + +RUN ./cmake/boost/build/ci/travis.py \ + --link static \ + -- \ + target-os=windows \ + --user-config="$TRAVIS_BUILD_DIR/cmake/boost/toolchains/mingw-w64-$platform.jam" \ + --with-filesystem \ + --with-program_options && \ + ./cmake/cmake/build/ci/travis.py \ + --install "$HOME/install" \ + -- \ + -D CMAKE_SYSTEM_NAME=Windows \ + -D "CMAKE_TOOLCHAIN_FILE=$TRAVIS_BUILD_DIR/cmake/cmake/toolchains/mingw-w64-$platform.cmake" \ + -D "BOOST_ROOT=$HOME/boost_1_65_0" \ + -D "BOOST_LIBRARYDIR=$HOME/boost_1_65_0/stage/$platform/$configuration/lib" |