From 64eb548bf177bba106e05341b6e447afea93db32 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 1 Feb 2017 12:02:26 +0300 Subject: [PATCH] Travis CI: Refactoring (CFLAGS_EXTRA_M, wrap long lines) --- .travis.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index cb603a09..249bd188 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,8 +9,8 @@ compiler: - gcc env: - - CFLAGS_EXTRA= - - CFLAGS_EXTRA="-m32" + - CFLAGS_EXTRA_M= + - CFLAGS_EXTRA_M=-m32 matrix: exclude: @@ -20,7 +20,11 @@ matrix: sudo: required before_install: - - if [[ "$TRAVIS_OS_NAME" == "linux" && "$CFLAGS_EXTRA" == -m32* ]]; then sudo apt-get install gcc-multilib; else ENABLE_CPP=--enable-cplusplus; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" && "$CFLAGS_EXTRA_M" == "-m32" ]]; then + sudo apt-get install gcc-multilib; + else + ENABLE_CPP=--enable-cplusplus; + fi install: - git clone --depth=50 https://github.com/ivmai/libatomic_ops.git @@ -28,4 +32,4 @@ install: script: - ./configure $ENABLE_CPP --enable-gc-debug --enable-munmap --enable-werror - - make -j check CFLAGS_EXTRA="$CFLAGS_EXTRA" + - make -j check CFLAGS_EXTRA="$CFLAGS_EXTRA_M" -- 2.40.0