From: Azat Khuzhin Date: Thu, 11 Aug 2016 06:27:50 +0000 (+0300) Subject: travis: split long lines, and make it cleaner X-Git-Tag: release-2.1.6-beta~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=685a6a1917d4d2ac3bdea81d6cc261217c5df980;p=libevent travis: split long lines, and make it cleaner --- diff --git a/.travis.yml b/.travis.yml index 125f5486..337cc094 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,12 +19,16 @@ compiler: - gcc - clang before_install: - - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi - - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi - - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew uninstall libtool && brew install libtool; fi - - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install openssl; fi - - if [ "$TRAVIS_OS_NAME" == "osx" ]; then sudo ln -sf $(ls -t /usr/local/bin/gcc-* | head -1) /usr/bin/gcc; fi - - if [ "$TRAVIS_OS_NAME" == "osx" ]; then sudo ln -sf $(ls -t /usr/local/bin/g++-* | head -1) /usr/bin/g++; fi + - if [ "$TRAVIS_OS_NAME" == "linux" ]; then + sudo apt-get update -qq; + fi + - if [ "$TRAVIS_OS_NAME" == "osx" ]; then + brew update; + brew uninstall libtool && brew install libtool; + brew install openssl; + sudo ln -sf $(ls -t /usr/local/bin/gcc-* | head -1) /usr/bin/gcc; + sudo ln -sf $(ls -t /usr/local/bin/g++-* | head -1) /usr/bin/g++; + fi addons: apt: packages: @@ -35,7 +39,18 @@ addons: - autoconf - cmake script: - - if [ "$EVENT_BUILD_METHOD" = "autotools" ]; then ./autogen.sh && ./configure $EVENT_CONFIGURE_OPTIONS && make && make verify; fi - - if [ "$EVENT_BUILD_METHOD" = "cmake" ]; then mkdir build && cd build && cmake .. $EVENT_CMAKE_OPTIONS && cmake --build . && CTEST_OUTPUT_ON_FAILURE=1 cmake --build . --target verify; fi + - if [ "$EVENT_BUILD_METHOD" = "autotools" ]; then + ./autogen.sh && + ./configure $EVENT_CONFIGURE_OPTIONS && + make && + make verify; + fi + - if [ "$EVENT_BUILD_METHOD" = "cmake" ]; then + mkdir build && + cd build && + cmake .. $EVENT_CMAKE_OPTIONS && + cmake --build . && + CTEST_OUTPUT_ON_FAILURE=1 cmake --build . --target verify; + fi notifications: irc: "irc.oftc.net#libevent"