Mercurial > dropbear
comparison .travis.yml @ 1263:c792271027eb
Merge pull request #23 from Chocobo1/travis_fix
TravisCI: re-enable MULTI=1 & NOWRITEV=1 builds on OSX
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 15 Mar 2016 21:55:11 +0800 |
parents | 71698088bdac |
children | 7d02b83c61fd 4a4e5d823cf6 |
comparison
equal
deleted
inserted
replaced
1252:3f4af834314d | 1263:c792271027eb |
---|---|
14 # TODO: remove this section when libtomcrypt compiles on OSX: https://github.com/libtom/libtomcrypt/issues/82 | 14 # TODO: remove this section when libtomcrypt compiles on OSX: https://github.com/libtom/libtomcrypt/issues/82 |
15 matrix: | 15 matrix: |
16 exclude: | 16 exclude: |
17 - os: osx | 17 - os: osx |
18 env: BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror | 18 env: BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror |
19 - os: osx | |
20 env: MULTI=1 | |
21 - os: osx | |
22 env: NOWRITEV=1 | |
23 | 19 |
24 compiler: | 20 compiler: |
25 - gcc | 21 - gcc |
26 - clang | 22 - clang |
27 | 23 |
38 | 34 |
39 before_install: | 35 before_install: |
40 - if [ "$CC" = "clang" ]; then WEXTRAFLAGS="$WEXTRAFLAGS -Wno-error=incompatible-library-redeclaration" ; fi # workaround | 36 - if [ "$CC" = "clang" ]; then WEXTRAFLAGS="$WEXTRAFLAGS -Wno-error=incompatible-library-redeclaration" ; fi # workaround |
41 | 37 |
42 install: | 38 install: |
43 - if [ "$TRAVIS_OS_NAME" = "osx" -a "$BUNDLEDLIBTOM" != "--enable-bundled-libtom" ]; then brew update > /dev/null && brew install libtomcrypt libtommath ; fi | 39 - if [ "$TRAVIS_OS_NAME" = "osx" -a "$BUNDLEDLIBTOM" = "--disable-bundled-libtom" ]; then brew update > /dev/null && brew install libtomcrypt libtommath ; fi |
44 | 40 |
45 script: | 41 script: |
46 - autoconf && autoheader && ./configure "$BUNDLEDLIBTOM" CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix="$HOME/inst" | 42 - 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 | 43 - if [ "$NOWRITEV" = "1" ]; then sed -i -e s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h ; fi |
48 - make -j3 install | 44 - make -j3 install |
49 | 45 |
50 after_success: | 46 after_success: |
51 - ~/inst/bin/dropbearkey -t rsa -f testrsa | 47 - ~/inst/bin/dropbearkey -t rsa -f testrsa |
52 - ~/inst/bin/dropbearkey -t dss -f testdss | 48 - ~/inst/bin/dropbearkey -t dss -f testdss |