comparison .travis.yml @ 1244:5b7cc2230de7

TravisCI: use `if` block
author Chocobo1 <Chocobo1@users.noreply.github.com>
date Tue, 05 Jan 2016 15:27:18 +0800
parents 2e3d083483de
children cb0806413220
comparison
equal deleted inserted replaced
1243:2e3d083483de 1244:5b7cc2230de7
38 38
39 install: 39 install:
40 - if [ "$TRAVIS_OS_NAME" = "osx" -a "$BUNDLEDLIBTOM" != "--enable-bundled-libtom" ]; then brew update > /dev/null && brew install libtomcrypt libtommath ; fi 40 - if [ "$TRAVIS_OS_NAME" = "osx" -a "$BUNDLEDLIBTOM" != "--enable-bundled-libtom" ]; then brew update > /dev/null && brew install libtomcrypt libtommath ; fi
41 41
42 script: 42 script:
43 - autoconf && autoheader && ./configure $BUNDLEDLIBTOM CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix=$HOME/inst 43 - autoconf && autoheader && ./configure "$BUNDLEDLIBTOM" CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix="$HOME/inst"
44 - test "$NOWRITEV" && sed -i s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h || true 44 - if [ "$NOWRITEV" = "1" ]; then sed -i s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h ; fi
45 - make -j3 install 45 - make -j3 install
46 46
47 after_success: 47 after_success:
48 - ~/inst/bin/dropbearkey -t rsa -f testrsa 48 - ~/inst/bin/dropbearkey -t rsa -f testrsa
49 - ~/inst/bin/dropbearkey -t dss -f testdss 49 - ~/inst/bin/dropbearkey -t dss -f testdss