Mercurial > dropbear
comparison .travis.yml @ 1247:428d83f2e5db
merge github master
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 10 Mar 2016 21:37:35 +0800 |
parents | cb0806413220 |
children | 506f7681d0f8 71698088bdac |
comparison
equal
deleted
inserted
replaced
1235:11f645c3715b | 1247:428d83f2e5db |
---|---|
1 language: c | 1 language: c |
2 | |
3 os: | |
4 - linux | |
5 - osx | |
6 | |
7 env: | |
8 matrix: | |
9 - BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror | |
10 - BUNDLEDLIBTOM=--enable-bundled-libtom | |
11 - MULTI=1 | |
12 - NOWRITEV=1 | |
13 | |
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 | |
19 - os: osx | |
20 env: MULTI=1 | |
21 - os: osx | |
22 env: NOWRITEV=1 | |
23 | |
2 compiler: | 24 compiler: |
3 - gcc | 25 - gcc |
26 - clang | |
4 | 27 |
5 script: | 28 # container-based builds |
6 - autoconf && autoheader && ./configure $BUNDLEDLIBTOM CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix=$HOME/inst | 29 sudo: false |
7 - test "$NOWRITEV" && sed -i s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h || true | 30 addons: |
8 - make install | 31 apt: |
32 packages: | |
33 # packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise | |
34 - zlib1g-dev | |
35 - libtomcrypt-dev | |
36 - libtommath-dev | |
37 | |
38 | |
39 before_install: | |
40 - if [ "$CC" = "clang" ]; then WEXTRAFLAGS="$WEXTRAFLAGS -Wno-error=incompatible-library-redeclaration" ; fi # workaround | |
41 | |
42 install: | |
43 - if [ "$TRAVIS_OS_NAME" = "osx" -a "$BUNDLEDLIBTOM" != "--enable-bundled-libtom" ]; then brew update > /dev/null && brew install libtomcrypt libtommath ; fi | |
44 | |
45 script: | |
46 - autoconf && autoheader && ./configure "$BUNDLEDLIBTOM" CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix="$HOME/inst" | |
47 - if [ "$NOWRITEV" = "1" ]; then sed -i s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h ; fi | |
48 - make -j3 install | |
49 | |
50 after_success: | |
9 - ~/inst/bin/dropbearkey -t rsa -f testrsa | 51 - ~/inst/bin/dropbearkey -t rsa -f testrsa |
10 - ~/inst/bin/dropbearkey -t dss -f testdss | 52 - ~/inst/bin/dropbearkey -t dss -f testdss |
11 - ~/inst/bin/dropbearkey -t ecdsa -f testec256 -s 256 | 53 - ~/inst/bin/dropbearkey -t ecdsa -f testec256 -s 256 |
12 - ~/inst/bin/dropbearkey -t ecdsa -f testec384 -s 384 | 54 - ~/inst/bin/dropbearkey -t ecdsa -f testec384 -s 384 |
13 - ~/inst/bin/dropbearkey -t ecdsa -f testec521 -s 521 | 55 - ~/inst/bin/dropbearkey -t ecdsa -f testec521 -s 521 |
14 | |
15 before_install: | |
16 - sudo apt-get update -qq | |
17 - sudo apt-get install -qq libz-dev libtomcrypt-dev libtommath-dev | |
18 | |
19 env: | |
20 - BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror | |
21 - BUNDLEDLIBTOM=--enable-bundled-libtom | |
22 - MULTI=1 | |
23 - NOWRITEV=1 |