dropbear 2016.73
[tomato.git] / release / src / router / dropbear / .travis.yml
blobcb0149c9299e8e2b16fa26ed7dcf30d2d9d89227
1 language: c
3 os:
4   - linux
5   - osx
7 env:
8   matrix:
9     - BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror
10     - BUNDLEDLIBTOM=--enable-bundled-libtom
11     - MULTI=1
12     - NOWRITEV=1
14 # TODO: remove this section when libtomcrypt compiles on OSX: https://github.com/libtom/libtomcrypt/issues/82
15 matrix:
16   exclude:
17     - os: osx
18       env: BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror
20 compiler:
21   - gcc
22   - clang
24 # container-based builds
25 sudo: false
26 addons:
27   apt:
28     packages:
29     # packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
30     - zlib1g-dev
31     - libtomcrypt-dev
32     - libtommath-dev
35 before_install:
36   - if [ "$CC" = "clang" ]; then WEXTRAFLAGS="$WEXTRAFLAGS -Wno-error=incompatible-library-redeclaration" ; fi  # workaround
38 install:
39   - if [ "$TRAVIS_OS_NAME" = "osx" -a "$BUNDLEDLIBTOM" = "--disable-bundled-libtom" ]; then brew update > /dev/null && brew install libtomcrypt libtommath ; fi
41 script:
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
44   - make -j3 install
46 after_success:
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