mirror of
https://github.com/clearml/dropbear
synced 2025-03-03 18:52:00 +00:00
TravisCI: enable osx builds
This commit is contained in:
parent
307c71b66a
commit
d416a9b818
27
.travis.yml
27
.travis.yml
@ -1,10 +1,25 @@
|
|||||||
language: c
|
language: c
|
||||||
|
|
||||||
|
os:
|
||||||
|
- linux
|
||||||
|
- osx
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror
|
matrix:
|
||||||
- BUNDLEDLIBTOM=--enable-bundled-libtom
|
- BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror
|
||||||
- MULTI=1
|
- BUNDLEDLIBTOM=--enable-bundled-libtom
|
||||||
- NOWRITEV=1
|
- MULTI=1
|
||||||
|
- NOWRITEV=1
|
||||||
|
|
||||||
|
# TODO: remove this section when libtomcrypt compiles on OSX: https://github.com/libtom/libtomcrypt/issues/82
|
||||||
|
matrix:
|
||||||
|
exclude:
|
||||||
|
- os: osx
|
||||||
|
env: BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror
|
||||||
|
- os: osx
|
||||||
|
env: MULTI=1
|
||||||
|
- os: osx
|
||||||
|
env: NOWRITEV=1
|
||||||
|
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
@ -20,6 +35,10 @@ addons:
|
|||||||
- libtomcrypt-dev
|
- libtomcrypt-dev
|
||||||
- libtommath-dev
|
- libtommath-dev
|
||||||
|
|
||||||
|
|
||||||
|
install:
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "osx" -a "$BUNDLEDLIBTOM" != "--enable-bundled-libtom" ]; then brew update > /dev/null && brew install libtomcrypt libtommath ; fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- autoconf && autoheader && ./configure $BUNDLEDLIBTOM CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix=$HOME/inst
|
- autoconf && autoheader && ./configure $BUNDLEDLIBTOM CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix=$HOME/inst
|
||||||
- test "$NOWRITEV" && sed -i s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h || true
|
- test "$NOWRITEV" && sed -i s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h || true
|
||||||
|
Loading…
Reference in New Issue
Block a user