diff options
author | Chocobo1 <Chocobo1@users.noreply.github.com> | 2016-01-05 15:27:18 +0800 |
---|---|---|
committer | Chocobo1 <Chocobo1@users.noreply.github.com> | 2016-01-11 13:33:00 +0800 |
commit | 0ba59d80b6d9ef680175dcb5f202982d3db9fef9 (patch) | |
tree | b63f1cb7acd52f4b6f6a71f0cbc334b9a81037c6 | |
parent | d416a9b818143a1bf3a3fbc49e521d0fad3fec0a (diff) |
TravisCI: use `if` block
-rw-r--r-- | .travis.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 45bbd1f..0c97752 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,8 +40,8 @@ install: - if [ "$TRAVIS_OS_NAME" = "osx" -a "$BUNDLEDLIBTOM" != "--enable-bundled-libtom" ]; then brew update > /dev/null && brew install libtomcrypt libtommath ; fi script: - - autoconf && autoheader && ./configure $BUNDLEDLIBTOM CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix=$HOME/inst - - test "$NOWRITEV" && sed -i s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h || true + - autoconf && autoheader && ./configure "$BUNDLEDLIBTOM" CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix="$HOME/inst" + - if [ "$NOWRITEV" = "1" ]; then sed -i s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h ; fi - make -j3 install after_success: |