From 1d16e22b49aa473d3fd5b0496f409bef8aefc762 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 8 Jan 2020 03:39:37 +0300 Subject: Travis: prettify .travis.yml --- .travis.yml | 88 ++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 49 insertions(+), 39 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6ad79fd..250ce85 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,60 +16,70 @@ jobs: include: - name: Simple CMake projects script: - - |- - ./cmake/build/build.py \ - --install "$HOME/install/simple" --configuration Release \ - -- cmake/examples/simple + - >- + ./cmake/build/build.py + --install "$HOME/install/simple" + --configuration Release + -- cmake/examples/simple - "$HOME/install/simple/bin/foo" - - |- - ./cmake/build/build.py \ - --install "$HOME/install/static" --configuration Debug \ - -- cmake/examples/static \ - -D "CMAKE_TOOLCHAIN_FILE=$TRAVIS_BUILD_DIR/cmake/toolchains/gcc-x86.cmake" + - >- + ./cmake/build/build.py + --install "$HOME/install/static" + --configuration Debug + -- cmake/examples/static + -D "CMAKE_TOOLCHAIN_FILE=$TRAVIS_BUILD_DIR/cmake/toolchains/gcc-x86.cmake" - "$HOME/install/static/bin/foo" - - |- - ./cmake/build/build.py \ - --install "$HOME/install/dynamic" --configuration Release \ - -- cmake/examples/dynamic + - >- + ./cmake/build/build.py + --install "$HOME/install/dynamic" + --configuration Release + -- cmake/examples/dynamic - LD_LIBRARY_PATH="$HOME/install/dynamic/lib" "$HOME/install/dynamic/bin/foo" - name: Boost 1.58 script: - ./boost/build/build.py download 1.58.0 - - |- - ./boost/build/build.py build \ - --configuration Debug --platform x86 \ - -- ./boost_1_58_0 \ - --with-filesystem --with-program_options + - >- + ./boost/build/build.py build + --configuration Debug + --platform x86 + -- ./boost_1_58_0 + --with-filesystem --with-program_options - bash -o pipefail -c 'find boost_1_58_0/stage -type f | sort' - - |- - ./cmake/build/build.py \ - --configuration Debug --install "$HOME/install/boost" \ - -- cmake/examples/boost \ - -D "BOOST_ROOT=$TRAVIS_BUILD_DIR/boost_1_58_0" \ - -D "BOOST_LIBRARYDIR=$TRAVIS_BUILD_DIR/boost_1_58_0/stage/x86/Debug/lib" \ - -D "CMAKE_TOOLCHAIN_FILE=$TRAVIS_BUILD_DIR/cmake/toolchains/gcc-x86.cmake" - - "$HOME/install/boost/bin/foo" + - >- + ./cmake/build/build.py + --install "$HOME/install/boost_1_58_0" + --configuration Debug + -- cmake/examples/boost + -D "BOOST_ROOT=$TRAVIS_BUILD_DIR/boost_1_58_0" + -D "BOOST_LIBRARYDIR=$TRAVIS_BUILD_DIR/boost_1_58_0/stage/x86/Debug/lib" + -D "CMAKE_TOOLCHAIN_FILE=$TRAVIS_BUILD_DIR/cmake/toolchains/gcc-x86.cmake" + - "$HOME/install/boost_1_58_0/bin/foo" - name: Boost 1.72 script: - ./boost/build/build.py download --cache . 1.72.0 - - |- - ./boost/build/build.py build \ - --configuration Debug Release --platform x86 x64 --link shared \ - -- ./boost_1_72_0 \ - --with-filesystem --with-program_options + - >- + ./boost/build/build.py build + --configuration Debug Release + --platform x86 x64 + --link shared + -- ./boost_1_72_0 + --with-filesystem --with-program_options - bash -o pipefail -c 'find boost_1_72_0/stage -type f | sort' - - |- - ./cmake/build/build.py \ - --configuration Release --install "$HOME/install/boost" \ - -- cmake/examples/boost \ - -D "BOOST_ROOT=$TRAVIS_BUILD_DIR/boost_1_72_0" \ - -D "BOOST_LIBRARYDIR=$TRAVIS_BUILD_DIR/boost_1_72_0/stage/x64/Release/lib" \ - -D Boost_USE_STATIC_LIBS=OFF - - LD_LIBRARY_PATH="$TRAVIS_BUILD_DIR/boost_1_72_0/stage/x64/Release/lib" "$HOME/install/boost/bin/foo" + - >- + ./cmake/build/build.py + --install "$HOME/install/boost_1_72_0" + --configuration Release + -- cmake/examples/boost + -D "BOOST_ROOT=$TRAVIS_BUILD_DIR/boost_1_72_0" + -D "BOOST_LIBRARYDIR=$TRAVIS_BUILD_DIR/boost_1_72_0/stage/x64/Release/lib" + -D Boost_USE_STATIC_LIBS=OFF + - >- + LD_LIBRARY_PATH="$TRAVIS_BUILD_DIR/boost_1_72_0/stage/x64/Release/lib" + "$HOME/install/boost_1_72_0/bin/foo" - name: Boost 1.65 script: -- cgit v1.2.3