9 - BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror
10 - BUNDLEDLIBTOM=--enable-bundled-libtom
14 # TODO: remove this section when libtomcrypt compiles on OSX: https://github.com/libtom/libtomcrypt/issues/82
18 env: BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror
24 # container-based builds
29 # packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
36 - if [ "$CC" = "clang" ]; then WEXTRAFLAGS="$WEXTRAFLAGS -Wno-error=incompatible-library-redeclaration" ; fi # workaround
39 - if [ "$TRAVIS_OS_NAME" = "osx" -a "$BUNDLEDLIBTOM" = "--disable-bundled-libtom" ]; then brew update > /dev/null && brew install libtomcrypt libtommath ; fi
42 - autoconf && autoheader && ./configure "$BUNDLEDLIBTOM" CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix="$HOME/inst"
43 - if [ "$NOWRITEV" = "1" ]; then sed -i -e s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h ; fi
47 - ~/inst/bin/dropbearkey -t rsa -f testrsa
48 - ~/inst/bin/dropbearkey -t dss -f testdss
49 - ~/inst/bin/dropbearkey -t ecdsa -f testec256 -s 256
50 - ~/inst/bin/dropbearkey -t ecdsa -f testec384 -s 384
51 - ~/inst/bin/dropbearkey -t ecdsa -f testec521 -s 521